- 21 Jan, 2013 2 commits
-
-
Russell Belfer committed
-
The commit time is already stored as a git_time_t, but we were parsing is as a uint32_t. This just switches the parser to use uint64_t which will handle dates further in the future (and adds some tests of those future dates).
Russell Belfer committed
-
- 18 Jan, 2013 2 commits
-
-
Zhao Cheng committed
-
Edward Thomson committed
-
- 17 Jan, 2013 4 commits
-
-
This takes all of the characters in core::env and makes them use hex sequences instead of keeping tricky character data inline in the test.
Russell Belfer committed -
Sebastian Bauer committed
-
This moves the check for the "encoding" header into a loop which is just scanning for non-required headers at the end of a commit header. That loop will skip unrecognized lines (including header continuation lines) until a terminating completely blank line is found, and only then does it move to reading the commit message.
Russell Belfer committed -
Edward Thomson committed
-
- 16 Jan, 2013 1 commit
-
-
nulltoken committed
-
- 15 Jan, 2013 5 commits
-
-
This makes tree iterators directly support case insensitivity by using a secondary index that can be sorted by icase. Also, this fixes the ambiguity check in the git_status_file API to also be case insensitive. Lastly, this adds new test cases for case insensitive range boundary checking for all types of iterators. With this change, it should be possible to deprecate the spool and sort iterator, but I haven't done that yet.
Russell Belfer committed -
This adds a test that confirms that the working directory iterator can actually correctly process ranges of files case insensitively with proper sorting and proper boundaries.
Russell Belfer committed -
This changes the iterator API so that flags can be passed in to the constructor functions to control the ignore_case behavior. At this point, the flags are not supported on tree iterators (i.e. there is no functional change over the old API), but the API changes are all made to accomodate this. By the way, I went with a flags parameter because in the future I have a couple of other ideas for iterator flags that will make it easier to fix some diff/status/checkout bugs.
Russell Belfer committed -
In preparation for further iterator changes, this cleans up a few small things in the iterator API: * removed the git_iterator_for_repo_index_range API * made git_iterator_free not be inlined * minor param name and test function name tweaks
Russell Belfer committed -
nulltoken committed
-
- 13 Jan, 2013 4 commits
-
-
Before, it was identical to the default template making it difficult to check, if the proper template was copied an external template test.
Sebastian Bauer committed -
been properly copied. This is a minimal effort to test whether the template really has been used when creating an repo with external templates.
Sebastian Bauer committed -
nulltoken committed
-
Fix #1236
nulltoken committed
-
- 12 Jan, 2013 4 commits
-
-
Edward Thomson committed
-
Carlos Martín Nieto committed
-
Otherwise the template functionallity is not tested (as a TODO we also shall test that the specified template really got copied).
Sebastian Bauer committed -
Philip Kelley committed
-
- 11 Jan, 2013 9 commits
-
-
Sascha Cunz committed
-
Sascha Cunz committed
-
Core git just looks for NUL bytes in files when deciding about is-binary inside diff (although it uses a better algorithm in checkout, when deciding if CRLF conversion should be done). Libgit2 was using the better algorithm in both places, but that is causing some confusion. For now, this makes diff just look for NUL bytes to decide if a file is binary by content in diff.
Russell Belfer committed -
This was just wrong. Added a test that verifying patch line numbers even for hunks further into a file and then fixed the algorithm. I needed to add a little extra state into the patch so that I could track old and new file numbers independently, but it should be okay.
Russell Belfer committed -
nulltoken committed
-
nulltoken committed
-
nulltoken committed
-
nulltoken committed
-
Carlos Martín Nieto committed
-
- 10 Jan, 2013 2 commits
-
-
This adds an option to checkout a la the diff option to turn off fnmatch evaluation for pathspec entries. This can be useful to make sure your "pattern" in really interpretted as an exact file match only.
Russell Belfer committed -
Edward Thomson committed
-
- 09 Jan, 2013 7 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
Philip Kelley committed
-
Currently, push doesn't really handle tags when queueing objects. Fix it.
Michael Schubert committed -
Michael Schubert committed
-
Jameson Miller committed
-
It is not legal inside our `p_mmap` function to mmap a zero length file. This adds a test that exercises that case inside diff and fixes the code path where we would try to do that. The fix turns out not to be a lot of code since our default file content is already initialized to "" which works in this case. Fixes #1210
Russell Belfer committed
-