- 24 Aug, 2012 5 commits
-
-
This is a big redesign of the git_submodule_status API and the implementation of the redesigned API. It also fixes a number of bugs that I found in other parts of the submodule API while writing the tests for the status part. This also fixes a couple of bugs in the iterators that had not been noticed before - one with iterating when there is a gitlink (i.e. separate-work-dir) and one where I was treating anything even vaguely submodule-like as a submodule, more aggressively than core git does.
Russell Belfer committed -
This fixes up a number of problems flagged by valgrind and also cleans up the internal `git_submodule` allocation handling overall with a simpler model.
Russell Belfer committed -
This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
- 23 Aug, 2012 1 commit
-
-
Russell Belfer committed
-
- 22 Aug, 2012 5 commits
-
-
This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
Russell Belfer committed -
If you use the clar cleanup callback function, you can't pass a reference pointer to a stack allocated variable because when the cleanup function runs, the stack won't exist anymore.
Russell Belfer committed -
This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
Russell Belfer committed -
In looking at PR #878, I found a few small bugs in the diff code, mostly related to work that can be avoided when processing tree- to-tree diffs that was always being carried out. This commit has some small fixes in it.
Russell Belfer committed -
This fills out the ignore API and adds tests.
Russell Belfer committed
-
- 21 Aug, 2012 4 commits
-
-
nulltoken committed
-
nulltoken committed
-
Ben Straub committed
-
Avoids getting ERROR_SHARING_VIOLATION on win32 and killing the entire clar run.
Ben Straub committed
-
- 19 Aug, 2012 2 commits
- 14 Aug, 2012 2 commits
-
-
Return -1 to stop the iteration instead of not-0
Carlos Martín Nieto committed -
If you want to be absolutely safe with git_message_prettify, you can now pass a NULL pointer for the buffer and get back the number of bytes that would be copied into the buffer. This means that an error is a non-negative return code and a success will be greater than zero from this function.
Russell Belfer committed
-
- 12 Aug, 2012 2 commits
-
-
This makes the message prettify buffer length check accurate.
Russell Belfer committed -
The config file parser was not working right if there was no whitespace between the value name and the equals sign. This fixes that.
Russell Belfer committed
-
- 09 Aug, 2012 2 commits
-
-
Joshua Peek committed
-
Joshua Peek committed
-
- 06 Aug, 2012 2 commits
-
-
Ben Straub committed
-
Vicent Marti committed
-
- 04 Aug, 2012 2 commits
-
-
Missed this one, ironically enough.
Russell Belfer committed -
This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
Russell Belfer committed
-
- 01 Aug, 2012 2 commits
-
-
The 'git revert/cherry-pick/merge -n' commands leave .git/MERGE_MSG behind so that git-commit can find it. As we don't yet support these operations, users who are shelling out to let git perform these operations haven't had a convenient way to get this message. These functions allow the user to retrieve the message and remove it when she's created the commit.
Carlos Martín Nieto committed -
Ben Straub committed
-
- 31 Jul, 2012 4 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
Global file mode override now works properly with the file mode stored in the tree node.
Ben Straub committed -
Ben Straub committed
-
- 30 Jul, 2012 1 commit
-
-
Replace with the contents of git_index_read_tree_with_stats() and improve documentation comments.
Ben Straub committed
-
- 28 Jul, 2012 3 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
Renamed git_checkout_index to what it really was, and removed duplicate code from clone.c. Added git_checkout_ref, which updates HEAD and hands off to git_checkout_head. Added tests for the options the caller can pass to git_checkout_*.
Ben Straub committed
-
- 27 Jul, 2012 3 commits
-
-
Ben Straub committed
-
Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
Vicent Marti committed -
Vicent Marti committed
-