- 23 Aug, 2012 1 commit
-
-
Russell Belfer committed
-
- 22 Aug, 2012 7 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 -
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 -
The extended version of repository init adds support for many of the things that you can do with `git init` and sets up structures that will make it easier to extend further in the future.
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 -
This creates a public API for adding to the internal ignores list, which already existing but was not accessible. This adds the new default value for core.excludesfile also.
Russell Belfer committed
-
- 21 Aug, 2012 2 commits
- 20 Aug, 2012 1 commit
-
-
Up to now, the idea was that the user would do all the operations for one repository in the same thread. Thus we could have the memory-mapped window information thread-local and avoid any locking. This is not practical in a few environments, such as Apple's GCD which allocates threads arbitrarily or the .NET CLR, where the OS-level thread can change at any moment. Make the control structure global and protect it with a mutex so we don't depend on the thread currently executing the code.
Carlos Martín Nieto committed
-
- 19 Aug, 2012 1 commit
-
-
nulltoken committed
-
- 14 Aug, 2012 2 commits
-
-
nulltoken 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
-
- 13 Aug, 2012 2 commits
-
-
Returning a negative cancels the walk, and returning a positive one causes us to skip an entry, which was previously done by a negative value. This allows us to stay consistent with the rest of the functions that take a callback and keeps the skipping functionality.
Carlos Martín Nieto committed -
However, there should be a way to cancel the walk and another to skip the entry.
Carlos Martín Nieto committed
-
- 12 Aug, 2012 3 commits
-
-
Okay, this is probably cleaner and it is also less net change from the original version
Russell Belfer committed -
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
-
- 11 Aug, 2012 1 commit
-
-
Michael Schubert committed
-
- 09 Aug, 2012 5 commits
-
-
Vicent Marti committed
-
Joshua Peek committed
-
Joshua Peek committed
-
Russell Belfer committed
-
Joshua Peek committed
-
- 06 Aug, 2012 2 commits
-
-
There is a little cleanup necessary from PR #843. Since the new callbacks return `GIT_EUSER` we have to be a little careful about return values when they are used internally to the library. Also, callbacks should be checked for non-zero return values, not just less than zero.
Russell Belfer committed -
Vicent Marti committed
-
- 04 Aug, 2012 3 commits
-
-
Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.
Michael Schubert committed -
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
-
- 02 Aug, 2012 2 commits
-
-
Vicent Marti committed
-
Carlos Martín Nieto committed
-
- 01 Aug, 2012 6 commits
-
-
Vicent Marti committed
-
Fixes #824 Exporting variables in a dynamic library is a PITA. Let's keep these values internally and wrap them through a helper method. This doesn't break the external API. @arrbee, aren't you glad I turned the `GIT_ATTR_` macros into function macros?
Vicent Marti committed -
Ben Straub committed
-
Sascha Cunz committed
-
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 2 commits
-
-
Ben Straub committed
-
Global file mode override now works properly with the file mode stored in the tree node.
Ben Straub committed
-