- 16 Jan, 2012 1 commit
-
-
We force stat to be a stat64 structure, so we can and should put all 64 bits of the size in st_size.
Carlos Martín Nieto committed
-
- 15 Jan, 2012 1 commit
-
-
off_t is always 32 bits in Windows, which is beyond stupid, but we just don't care anymore because we're using `git_off_t` which is assured to be 64 bits on all platforms, regardless of compilation mode. Just ensure that no casts to `off_t` are performed. Also, the check for `off_t` overflows has been dropped, once again, because the size of our offsets is always 64 bits on all platforms. Fixes #534
Vicent Martí committed
-
- 13 Jan, 2012 2 commits
-
-
In the main loop we peek to see what kind of line the next one is. If there are multiple newlines before the end of the file, the eof marker won't be set after we read the last line with data and we'll try to peek again. This peek will return LF (as it pretends that we have a newline at EOF so other function don't need any special handling). Fix cfg_getchar so it doesn't try to read past the last character in the file and config_parse so it considers LF as EOF on peek (as we're ignoring spaces) and sets the reader's EOF flag to exit the parsing loop.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
- 09 Jan, 2012 1 commit
-
-
It turns out that passing NULL for the second parameter of realpath(3) is not as portable as one might like. Notably, Mac OS 10.5 and earlier does not support it. So this moves us back to a large buffer to get the realpath info.
Russell Belfer committed
-
- 06 Jan, 2012 2 commits
-
-
Valgrind fixes in smaller pieces
Vicent Martí committed -
Trees, indices and repos need to be freed
Carlos Martín Nieto committed
-
- 05 Jan, 2012 4 commits
-
-
Missed freeing the entry.
Russell Belfer committed -
This is the first time this error is throw, so use git__throw instead of git__rethrow.
Russell Belfer committed -
Calling git_repository_open immediately after git_repository_init results in memory leaks.
Russell Belfer committed -
We get the oid of a reference, free the reference, then convert the oid to a string. We need to convert the oid before freeing the memory.
Jeff King committed
-
- 04 Jan, 2012 4 commits
-
-
Conflicts: tests-clay/clay.h tests-clay/clay_main.c
Vicent Martí committed -
Fix some "attributes" related issues
Vicent Martí committed -
The value returned by MultiByteToWideChar includes the NULL termination character.
nulltoken committed -
nulltoken committed
-
- 03 Jan, 2012 2 commits
-
-
Add missing semicolon
Russell Belfer committed -
Vincent Lee committed
-
- 02 Jan, 2012 3 commits
-
-
Vicent Martí committed
-
Conflicts: tests-clay/clay.h tests-clay/clay_main.c
Vicent Martí committed -
Conflicts: tests-clay/clay_main.c
Vicent Martí committed
-
- 31 Dec, 2011 1 commit
-
-
`delete` is a reserved keyword in C++.
Vicent Martí committed
-
- 30 Dec, 2011 8 commits
-
-
This updates to implementation of gitattribute macros to be much more similar to core git (albeit not 100%) and to handle expansion of macros within macros, etc. It also cleans up the refcounting usage with macros to be much cleaner. Also, this adds a new vector function `git_vector_insert_sorted()` which allows you to maintain a sorted list as you go. In order to write that function, this changes the function `git__bsearch()` to take a somewhat different set of parameters, although the core functionality is still the same.
Russell Belfer committed -
Clemens Buchacher committed
-
Currently, diff_index passes the full relative path from the repository root to the callback. In case of an addition, it passes the tree entry instead of the index entry. This change fixes the path used for addition, and it passes only the basename of the path. This mimics the current behavior of git_tree_diff.
Clemens Buchacher committed -
For the diff-index tests, the diff_more test will run multiple times. Reset the expect_idx counter after each test in order to allow this.
Clemens Buchacher committed -
The git.git implementation allows this, and there is no reason not to.
Clemens Buchacher committed -
Clemens Buchacher committed
-
Clemens Buchacher committed
-
Russell Belfer committed
-
- 29 Dec, 2011 3 commits
-
-
Clemens Buchacher committed
-
The clay test suite files clay.h and clay_main.c are generated by the clay python script. Teach CMake about this dependency and remove the generated files from the repository.
Clemens Buchacher committed -
Add support for git attribute macro definitions. Also, add support for cache flush API to clear the attribute file content cache when needed. Additionally, improved the handling of global and system files, making common utility functions in fileops and converting config and attr to both use the common functions. Adds a bunch more tests and fixed some memory leaks. Note that adding macros required me to use refcounted attribute assignment definitions, which complicated, but probably improved memory usage.
Russell Belfer committed
-
- 28 Dec, 2011 4 commits
-
-
This makes libgit2 compliant with the following scenario $ git ls-remote file:///d:/temp/dwm%20tinou 732d790b702db4b8985f5104fc44642654f6a6b6 HEAD 732d790b702db4b8985f5104fc44642654f6a6b6 refs/heads/master 732d790b702db4b8985f5104fc44642654f6a6b6 refs/remotes/origin/HEAD 732d790b702db4b8985f5104fc44642654f6a6b6 refs/remotes/origin/master $ mv "/d/temp/dwm tinou" /d/temp/dwm+tinou $ git ls-remote file:///d:/temp/dwm%20tinou fatal: 'd:/temp/dwm tinou' does not appear to be a git repository fatal: The remote end hung up unexpectedly $ git ls-remote file:///d:/temp/dwm+tinou 732d790b702db4b8985f5104fc44642654f6a6b6 HEAD 732d790b702db4b8985f5104fc44642654f6a6b6 refs/heads/master 732d790b702db4b8985f5104fc44642654f6a6b6 refs/remotes/origin/HEAD 732d790b702db4b8985f5104fc44642654f6a6b6 refs/remotes/origin/master
nulltoken committed -
nulltoken committed
-
nulltoken committed
-
nulltoken committed
-
- 27 Dec, 2011 4 commits
-
-
Added link to vala bindings
Vicent Martí committed -
Antono Vasiljev committed
-
Add Perl to the list of bindings.
Vicent Martí committed -
Ingy döt Net committed
-