- 14 Aug, 2012 7 commits
-
-
Fix message prettify length check
Russell Belfer 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 -
git_note_foreach: Fix documentation for notes_ref parameter
Vicent Martí committed -
git_note_oid: Fix the documentation to reference parameters using the correct names
Vicent Martí committed -
git_note_create: Copyediting on documentation for the oid parameter
Vicent Martí committed -
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 9 commits
-
-
Okay, this is probably cleaner and it is also less net change from the original version
Russell Belfer committed -
Josh Triplett 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 -
Josh Triplett committed
-
Josh Triplett 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 6 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
-