- 14 Aug, 2012 2 commits
-
-
Fix incorrect array size in example for git_config_get_mapped
Vicent Martí committed -
Config file parser includes = in name if no space around it
Vicent Martí committed
-
- 12 Aug, 2012 5 commits
-
-
Okay, this is probably cleaner and it is also less net change from the original version
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 -
In the documentation for git_config_get_mapped, the sample mapping array uses [3] but has 4 entries. Fix by dropping the size entirely and letting the compiler figure it out.
Josh Triplett committed -
Export git_attr_value
Vicent Martí committed -
Commit 0c9eacf3 introduced the function git_attr_value and switched the GIT_ATTR_* macros to use it, but attempting to use that function leads to a linker error (undefined reference to `git_attr_value'). Export git_attr_value so programs can actually call it.
Josh Triplett committed
-
- 11 Aug, 2012 1 commit
-
-
Michael Schubert committed
-
- 09 Aug, 2012 8 commits
-
-
Vicent Marti committed
-
Parse ref oids without trailing newline
Russell Belfer committed -
Joshua Peek committed
-
Joshua Peek committed
-
Joshua Peek committed
-
Joshua Peek committed
-
Russell Belfer committed
-
Joshua Peek committed
-
- 06 Aug, 2012 4 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
-
Vicent Marti committed
-
Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
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 8 commits
-
-
Conflicts: src/netops.c src/netops.h src/oid.c
Vicent Marti committed -
attr: Do not export variables externally
Vicent Martí committed -
Vicent Marti committed
-
repository: add a getter and remove function for git's prepared message
Vicent Martí 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 -
Add function to query for compile time settings.
Vicent Martí 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
-
- 31 Jul, 2012 3 commits
-
-
git_config_find_* does not set a git error
Vicent Martí committed -
travis: be more idiomatic with the environment
Vicent Martí committed -
odb: allow creating an ODB backend from a packfile index
Vicent Martí committed
-
- 30 Jul, 2012 4 commits
-
-
Unify the transport code
Vicent Martí committed -
SSL isn't the only way that a transport can be encrypted. The new name will make it easier to merge the SSH support.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Using the callbacks makes it clearer and reduces the amount of #ifdefs and ifs and we need in the code.
Carlos Martín Nieto committed
-