- 07 May, 2013 11 commits
-
-
Russell Belfer 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 3 commits
-
-
Strict/lax commit API
Russell Belfer committed -
nulltoken committed
-
nulltoken committed
-
- 04 May, 2013 3 commits
-
-
Edward Thomson committed
-
Jameson Miller committed
-
Peeling to an invalid type is now checked via an assert so this test is no longer relevant.
Russell Belfer committed
-
- 03 May, 2013 5 commits
-
-
Edward Thomson committed
-
Vicent Marti committed
-
Vicent Marti committed
-
fix some leaks
Vicent Martí committed -
Edward Thomson committed
-
- 02 May, 2013 11 commits
-
-
braces
Vicent Martí committed -
Edward Thomson committed
-
puns are not funny; type punning especially so
Vicent Martí committed -
Edward Thomson committed
-
Russell Belfer committed
-
Switch to index_version as "git_pack_file is ready" flag
Vicent Martí committed -
We use p->index_map.data to check whether the struct has been set up and all the information about the index is stored there. This variable gets set up halfway through the setup process, however, and a thread can come along and use fields that haven't been written to yet. Crucially, pack_entry_find_offset() needs to read the index version (which is written after index_map) to know the offset and stride length to pass to sha1_entry_pos(). If these values are wrong, assertions in it will fail, as it will be reading bogus data. Make index_version the last field to be written and switch from using p->index_map.data to p->index_version as "git_pack_file is ready" flag as we can use it to know if every field has been written.
Carlos Martín Nieto committed -
refdb_fs: do not require peeled packed refs to be tags
Vicent Martí committed -
We only set our negative flag for PEELING_FULL; we can fall back to the lesser PEELING_STANDARD if our ref is in the refs/tags/ hierarchy.
Jeff King committed -
Vicent Marti committed
-
This makes parsing easier! :p
Vicent Marti committed
-