| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Introduce a refs iterator
|
| |
| |
| |
| |
| | |
If the backend doesn't provide support for it, the matching is done in
refdb on top of a normal iterator.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Nobody should ever be using anything other than ALL at this level, so
remove the option altogether.
As part of this, git_reference_foreach_glob is now implemented in the
frontend using an iterator. Backends will later regain the ability of
doing the glob filtering in the backend.
|
| |
| |
| |
| | |
This allows us to get a list of reference names in a loop instead of callbacks.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This clarifies the docs for git_repository_message and also adds
to the tests to explicitly check NUL termination of data when the
output buffer is smaller than the message size. There is a minor
behavior change so that a non-NULL output buffer will always be
NUL terminated (at length zero) if an error occurs.
|
|\ \
| | |
| | | |
Expose git_reference_dwim
|
| | |
| | |
| | |
| | |
| | | |
Extract this function out of the rev-parse code to be able to DWIM a
reference instead of its target.
|
|\ \ \
| | | |
| | | | |
Config helpers for global/xdg config files
|
| |/ /
| | |
| | |
| | |
| | | |
The rules for which one to open is a bit silly, so let's make it
easier for our users.
|
|\ \ \
| | | |
| | | | |
Diff patch bug fixes
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds a new line origin constant for the special line that
is used when both files end without a newline.
In the course of writing the tests for this, I was having problems
with modifying a file but not having diff notice because it was
the same size and modified less than one second from the start of
the test, so I decided to start working on nanosecond timestamp
support. This commit doesn't contain the nanosecond support, but
it contains the reorganization of maybe_modified and the hooks so
that if the nanosecond data were being read by stat() (or rather
being copied by git_index_entry__init_from_stat), then the nsec
would be taken into account.
This new stuff could probably use some more tests, although there
is some amount of it here.
|
|/ /
| |
| |
| | |
Just like git_tree_owner, etc.
|
|\ \
| | |
| | | |
allow checkout to proceed when a dir to be removed is in use (win32)
|
| |/ |
|
| | |
|
|/ |
|
|\
| |
| | |
Merge trees
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Namespace support
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
When diff encounters an untracked directory, there was a shortcut
that it took which is not compatible with core git. This makes
the default behavior no longer take that shortcut and instead look
inside the untracked directory to see if there are any untracked
files within it. If there are not, then the directory is treated
as an ignore directory instead of an untracked directory. This
has implications for the git_status APIs.
|
| |
|
|\
| |
| | |
Remove most inlines from the public API
|
| |
| |
| |
| |
| | |
Removed useless prototype and renamed object typecast functions
declaration macro.
|
| |
| |
| |
| |
| |
| | |
This removes the GIT_INLINE versions of the simple git_object
accessors and standardizes them with a helper macro in src/object.h
to build the function bodies.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add a new git_oid_strcmp that compares a string OID with a hex
oid for sort order, and then reimplement git_oid_streq using it.
This actually should speed up git_oid_streq because it only reads
as far into the string as it needs to, whereas previously it would
convert the whole string into an OID and then use git_oid_cmp.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Bring back a way of acessing the git_refspec* from a remote.
Closes #1514
|
| | |
|
|/
|
|
|
| |
Relax the ONELEVEL ref naming rules so the refspec parsing code can
ask for 'master' to be considered valid.
|
| |
|
| |
|
|\
| |
| | |
Remote refspecs minor fixes
|
| | |
|
|\ \
| | |
| | | |
64 bit atomic operations and shared cache memory usage
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Added function to insert commit into pack
|
| |/ |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Revamp the refspec handling
|
| |
| |
| |
| |
| |
| |
| |
| | |
It used to be separate as an attempt to make the querying easier, but
it didn't work out that way, so put all the data together.
Add git_refspec_string() as well to get the original string, which is
now stored alongside the independent parts.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs
from the remote and rename the refspec-adding functions to a less
silly name.
Use this instead of the vector index hacks in the tests.
|