- 10 May, 2013 7 commits
-
-
Improve ignore handling in git_status_file
Vicent Martí committed -
Fix diff output for renames and copies
Vicent Martí committed -
Fix some memory leaks
Ben Straub committed -
nulltoken committed
-
If you use rename detection, the renamed and copied files would not show any text diffs because the function that decides if data should be loaded didn't know which sides of the diff to load for those cases. This adds a test that looks at the patch generated for diff entries that are COPIED or RENAMED.
Russell Belfer committed -
The git_status_file API was doing a hack to deal with files that are inside ignored directories. The status scan was not reporting any file in this case, so git_status_file would attempt a final "stat()" call, and return IGNORED if the file actually existed. On case-insensitive filesystems where core.ignorecase is set incorrectly, this magic check can "succeed" and report a file as ignored when it should actually return ENOTFOUND. Now that we have the GIT_STATUS_OPT_RECURSE_IGNORED_DIRS, we can use that flag to make sure that git_status_file() will look into ignored directories and eliminate the hack completely, so we give the correct error.
Russell Belfer committed -
Michael Schubert committed
-
- 09 May, 2013 6 commits
-
-
calloc refs instead of malloc'ing them
Vicent Martí committed -
Edward Thomson committed
-
Fix git_repository_message docs
Vicent Martí committed -
This clarifies the docs for git_repository_message and also adds to the tests to explicitly check NUL termination of data when the output buffer is smaller than the message size. There is a minor behavior change so that a non-NULL output buffer will always be NUL terminated (at length zero) if an error occurs.
Russell Belfer committed -
Expose git_reference_dwim
Vicent Martí committed -
Fix windows diff eofnl error
Vicent Martí committed
-
- 08 May, 2013 1 commit
-
-
Russell Belfer committed
-
- 07 May, 2013 17 commits
-
-
Config helpers for global/xdg config files
Vicent Martí committed -
Extract this function out of the rev-parse code to be able to DWIM a reference instead of its target.
Carlos Martín Nieto committed -
The rules for which one to open is a bit silly, so let's make it easier for our users.
Carlos Martín Nieto committed -
When a repository is initialised, we need to probe to see if there is a global config to load. If this is not the case, the user isn't able to write to the global config without creating the backend and adding it themselves, which is inconvenient and overly complex. Unconditionally create and add a backend for the global config file regardless of whether it exists as a convenience for users. To enable this, we allow creating backends to files that do not exist yet, changing the semantics somewhat, and making some tests invalid.
Carlos Martín Nieto committed -
remote: correctly interpret tagopt '--tags'
Vicent Martí committed -
Russell Belfer committed
-
When tagopt is set to '--tags', we should only take the default tags refspec into account and ignore any configured ones. Bring the code into compliance.
Carlos Martín Nieto committed -
Diff patch bug fixes
Vicent Martí committed -
When a patch contained an eofnl change (i.e. the last line either gained or lost a newline), the oldno and newno line number values for the lines in the last hunk of the patch were not useful. This makes them behave in a more expected manner.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
This adds a new line origin constant for the special line that is used when both files end without a newline. In the course of writing the tests for this, I was having problems with modifying a file but not having diff notice because it was the same size and modified less than one second from the start of the test, so I decided to start working on nanosecond timestamp support. This commit doesn't contain the nanosecond support, but it contains the reorganization of maybe_modified and the hooks so that if the nanosecond data were being read by stat() (or rather being copied by git_index_entry__init_from_stat), then the nsec would be taken into account. This new stuff could probably use some more tests, although there is some amount of it here.
Russell Belfer committed -
fix git_branch_set_upstream for local branches
Carlos Martín Nieto committed -
Fixed qsort_r() problem when targeting AmigaOS.
Russell Belfer committed -
We fall back to the libgit2-provided insert sort as done for other platforms.
Sebastian Bauer committed -
Add git_commit_owner to the public interface
Russell Belfer committed -
Just like git_tree_owner, etc.
J. David Ibáñez committed
-
- 06 May, 2013 7 commits
-
-
Currently git_branch_set_upstream when passed a local branch creates invalid configuration, for ex. if we setup branch 'tracking_master' to track local 'master' libgit2 generates the following config ``` [branch "track_master"] remote = . merge = .refs/heads/track_master ``` The merge value is invalid and calling git_branch_upstream on 'tracking_master' results in invalid reference error. It should do: ``` [branch "track_master"] remote = . merge = refs/heads/master ```
Nikolai Vladimirov committed -
p_stat() should follow symlinks on windows
Vicent Martí committed -
Make sure error messages are set for most error returns
Vicent Martí committed -
By default do not set tagopt when cloning
Vicent Martí committed -
allow checkout to proceed when a dir to be removed is in use (win32)
Vicent Martí committed -
branch.h: fix typo in docs
Russell Belfer committed -
Nikolai Vladimirov committed
-
- 05 May, 2013 2 commits
-
-
Strict/lax commit API
Russell Belfer committed -
nulltoken committed
-