summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | API updates for submodule.hRussell Belfer2012-11-273-12/+12
| |
* | Update diff callback param orderRussell Belfer2012-11-274-94/+95
| | | | | | | | | | | | | | | | This makes the diff functions that take callbacks both take the payload parameter after the callback function pointers and pass the payload as the last argument to the callback function instead of the first. This should make them consistent with other callbacks across the API.
* | Clean up config.hBen Straub2012-11-279-71/+71
| |
* | Update callback fn ptr for git_reference_foreachRussell Belfer2012-11-271-1/+1
| | | | | | | | As part of API review, use a typedef for the callback fn ptr.
* | API review / update for tree.hRussell Belfer2012-11-275-21/+29
| |
* | Updates to reset.hRussell Belfer2012-11-271-1/+1
| |
* | More external API cleanupVicent Marti2012-11-2711-76/+60
| | | | | | | | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c
* | Rename ref and reflog apis for consistencyBen Straub2012-11-2716-71/+72
| |
* | fix build on FreeBSDFraser Tweedale2012-11-261-0/+4
| | | | | | | | | | | | | | 3f9eb1e introduced support for SSL certificates issued for IP addresses, making use of in_addr and in_addr6 structs. On FreeBSD these are defined in (a file included in) <netinet/in.h>, so include that file on FreeBSD and get the build working again.
* | Merge pull request #1101 from csware/prevent_dieVicent Martí2012-11-261-2/+4
|\ \ | | | | | | pack.c: Set p->mwf.fd to -1 on error
| * | Set p->mwf.fd to -1 on errorSven Strickroth2012-11-241-2/+4
| | | | | | | | | | | | | | | | | | If p->mwf.fd is e.g. -2 then it is closed in packfile_free and an exception might be thrown. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | | Fix invalid read reported by valgrinddelanne2012-11-261-1/+1
|/ /
* | Merge pull request #1097 from nulltoken/topic/head_tree_errorVicent Martí2012-11-234-55/+18
|\ \ | | | | | | Make `git_repository_head_tree()` return error codes
| * | repo: Make git_repository_head_tree() return error codesnulltoken2012-11-224-55/+18
| | |
* | | Remove use of English expletivesMartin Woodward2012-11-235-14/+14
|/ / | | | | | | | | | | Remove words such as fuck, crap, shit etc. Remove other potentially offensive words from comments. Tidy up other geopolicital terms in comments.
* | Merge pull request #1092 from arrbee/legal-to-not-have-gitconfigRussell Belfer2012-11-202-19/+28
|\ \ | | | | | | It is okay to not have a .gitconfig file
| * | Need to clear ignored error from config loadRussell Belfer2012-11-201-0/+2
| | |
| * | It is okay to not have a .gitconfig fileRussell Belfer2012-11-202-19/+26
| |/ | | | | | | | | | | Opening a repo is generating an error if you don't have a .gitconfig file in your home directory, but that should be legal.
* | Minor optimization in win32 do_lstatEduardo Bart2012-11-201-3/+2
| |
* | update win32 lstat commentEduardo Bart2012-11-191-5/+2
| |
* | Fix win32 lstatEduardo Bart2012-11-191-19/+7
|/
* Catch invalid filenames in append_entry()Scott J. Goldman2012-11-181-0/+3
| | | | | This prevents the index api from calling write_tree() with a bogus tree.
* Prevent creating `..`, `.`, and `.git` with tree builderScott J. Goldman2012-11-181-1/+3
| | | | As per core git.
* Indexer: Avoid a possible double-deletion in error caseSascha Cunz2012-11-181-2/+3
|
* Fix a couple of warningsMichael Schubert2012-11-182-3/+3
|
* reflog: make entry_byindex() and drop() git compliantnulltoken2012-11-173-23/+28
| | | | | Passing 0 as the index now retrieves the most recent entry instead of the oldest one.
* config: Opening a nonexistent file returns ENOTFOUNDnulltoken2012-11-172-7/+42
|
* config: Make git_config_file__ondisk() internalnulltoken2012-11-171-0/+13
|
* repo: ensure is_empty() checks there are no refsnulltoken2012-11-171-20/+31
|
* tag: rename git_tag_type to git_tag_target_typenulltoken2012-11-171-1/+1
|
* Fix MSVC compilation warningsnulltoken2012-11-171-5/+5
|
* Merge pull request #1075 from carlosmn/alternates-recurseVicent Martí2012-11-161-8/+20
|\ | | | | odb: recursively load alternates
| * odb: recursively load alternatesCarlos Martín Nieto2012-11-161-8/+20
| | | | | | | | The maximum depth is 5, like in git
* | Merge pull request #1071 from arrbee/alternate-fix-strcmpScott J. Goldman2012-11-1511-68/+139
|\ \ | | | | | | Win32 fixes for diff/checkout/reset
| * | Add POSIX compat lstat() variant for win32Russell Belfer2012-11-147-60/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing p_lstat implementation on win32 is not quite POSIX compliant when setting errno to ENOTDIR. This adds an option to make is be compliant so that code (such as checkout) that cares to have separate behavior for ENOTDIR can use it portably. This also contains a couple of other minor cleanups in the posix_w32.c implementations to avoid unnecessary work.
| * | Create internal strcmp variants for function ptrsRussell Belfer2012-11-144-8/+43
| | | | | | | | | | | | | | | | | | Using the builtin strcmp and strcasecmp as function pointers is problematic on win32. This adds internal implementations and divorces us from the platform linkage.
* | | Fix -Wmaybe-uninitialized warningMichael Schubert2012-11-161-1/+1
| | |
* | | Merge pull request #1074 from edubart/ignore_diff_filemodeVicent Martí2012-11-151-0/+3
|\ \ \ | | | | | | | | Add option to ignore file mode in diffs
| * | | Add option to ignore file mode in diffsEduardo Bart2012-11-151-0/+3
| | |/ | |/|
* | | Add explicit git_index ptr to diff and checkoutRussell Belfer2012-11-147-38/+47
| | | | | | | | | | | | | | | | | | | | | | | | A number of diff APIs and the `git_checkout_index` API take a `git_repository` object an operate on the index. This updates them to take a `git_index` pointer explicitly and only fall back on the `git_repository` index if the index input is NULL. This makes it easier to operate on a temporary index.
* | | Add iterator for git_index objectRussell Belfer2012-11-147-24/+77
| | | | | | | | | | | | | | | | | | The index iterator could previously only be created from a repo object, but this allows creating an iterator from a `git_index` object instead (while keeping, though renaming, the old function).
* | | Fix diff API to better parameter orderRussell Belfer2012-11-145-86/+50
|/ / | | | | | | | | The diff API is not in the parameter order one would expect from other libgit2 APIs. This fixes that.
* | Slightly different valgrind fixCarlos Martín Nieto2012-11-131-3/+1
| | | | | | | | | | Allocate with calloc rather than conditionally memsetting a specific part of the struct later on.
* | Fix a few valgrind errorsCarlos Martín Nieto2012-11-133-2/+5
|/
* Merge pull request #1068 from carlosmn/config-empty-valueVicent Martí2012-11-134-24/+35
|\ | | | | Deal with empty and nonexsitent values in config
| * config: return an emtpy string when there is no valueCarlos Martín Nieto2012-11-132-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Returning NULL for the string when we haven't signaled an error condition is counter-intuitive and causes unnecessary edge cases. Return an empty string when asking for a string value for a configuration variable such as '[section] var' to avoid these edge cases. If the distinction between no value and an empty value is needed, this can be retrieved from the entry directly. As a side-effect, this change stops the int parsing functions from segfaulting on such a variable.
| * config: distinguish between a lone variable name and one without rhsCarlos Martín Nieto2012-11-133-9/+8
| | | | | | | | | | | | '[section] variable' and '[section] variable =' behave differently when parsed as booleans, so we need to store that distinction internally.
* | http: UnrustleVicent Marti2012-11-131-4/+1
| |
* | Merge pull request #1016 from arrbee/fix-checkout-dir-removalVicent Martí2012-11-1324-525/+1166
|\ \ | |/ |/| Update checkout with new strategies & behavior
| * Fix warnings and valgrind issuesRussell Belfer2012-11-094-9/+15
| | | | | | | | | | This fixes some various warnings that showed up in Travis and a couple uses of uninitialized memory and one memory leak.