| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix message prettify length check
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
git_note_foreach: Fix documentation for notes_ref parameter
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
git_note_oid: Fix the documentation to reference parameters using the correct names
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
correct names
|
|\ \ \ \ \
| | | | | |
| | | | | | |
git_note_create: Copyediting on documentation for the oid parameter
|
| |/ / / / |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Commit 0c9eacf3d2c83256736a5bb2a240e73afd13d55f 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.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
src/notes.c
src/transports/git.c
src/transports/http.c
src/transports/local.c
tests-clar/odb/foreach.c
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This makes sure that an error code returned by the callback function
of `git_tree_walk` will stop the iteration and get propagated back
to the caller verbatim.
Also, this adds a minor helper function `git_tree_entry_byoid` that
searches a `git_tree` for an entry with the given OID. This isn't
a fast function, but it's easier than writing the loop yourself as
an external user of the library.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Conflicts:
src/netops.c
src/netops.h
src/oid.c
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
attr: Do not export variables externally
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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? :sparkles:
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
repository: add a getter and remove function for git's prepared message
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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.
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
odb: allow creating an ODB backend from a packfile index
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Primarily useful when used together with git_odb_backend_one_pack().
|
| | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | |
| | | | | | |
git_odb_backend_one_packfile() allows us to create an ODB backend out
of an .idx file.
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
git.git uses an inlined hashcmp function instead of memcmp, since it
performes much better when comparing hashes (most hashes compared
diverge within the first byte).
Measurements and rationale for the curious reader:
http://thread.gmane.org/gmane.comp.version-control.git/172286
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add a struct for network callbacks
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
Currently only update_tips is used, but it prepares the way for
progress output during download.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Yes, we can get the repository from the owner of the object, but having
it marked explicitly makes the API more consistent.
|
|\ \ \ \ \ |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |/ / /
| |/| | | |
|
| | | | | |
|
|\ \ \ \ \ |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |/ / / / |
|
| |_|/ /
|/| | | |
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
Revparse rework
|
| | |
| | |
| | |
| | | |
Partially fix #530
|
|/ /
| |
| |
| |
| |
| |
| | |
Pevents collisions with the original libgit, which also exports those
exact symbols.
Fixes #822
|
| | |
|
|\ \
| | |
| | | |
odb: add git_odb_foreach()
|
| | |
| | |
| | |
| | |
| | | |
Go through each backend and list every objects that exists in
them. This allows fsck-like uses.
|