| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
This makes them show up in the reference, even if the text itself isn't
the most descriptive.
These have been found with
grep -Przon '\n\ntypedef struct.*?\{' -- include
grep -Przon '\n\ntypedef enum.*?\{' -- include
|
| |
|
| |
|
|
|
|
|
| |
If it's not documented, it doesn't show up in the docs (and we really
should document, anyway).
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Keep the reflog parameters as the last two, as they're the optional
parameters.
|
|
|
|
|
| |
This addresses arrbee's concerns about wording in the conditional
reference udpate functions.
|
|
|
|
|
| |
Add it under the git_reference_remove() name, letting the user pass the
repo and name, analogous to unconditional setting/creation.
|
|
|
|
| |
Recognize when the reference has changed since we loaded it.
|
|
|
|
| |
Bring the race detection goodness to symbolic references as well.
|
|
|
|
|
| |
In case we loose the race to update the reference, return GIT_EMODIFIED
to let the user distinguish it from other types of errors.
|
|
|
|
|
|
| |
Change the name to _matching() intead of _if(), and force _set_target()
to be a conditional update. If the user doesn't care about the old
value, they should use git_reference_create().
|
|
|
|
| |
Allow updating references if the old value matches the given one.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Any well-behaved program should write a descriptive message to the
reflog whenever it updates a reference. Let's make this more prominent
by removing the version without the reflog parameters.
|
|\
| |
| | |
Reference operations with log
|
| |
| |
| |
| |
| |
| | |
The frontend used to look at the file directly, but that's obviously not
the right thing to do. Expose it on the backend and use that function
instead.
|
| |
| |
| |
| |
| |
| | |
Sometimes (e.g. stash) we want to make sure that a log will be written,
even if it's not in one of the standard locations. Let's make that
easier.
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before these changes, looking up a reference would return the
same precomposed or decomposed form of the reference name that
was used to look it up, so on MacOS which ignores the difference
between the two, a single reference could be looked up either way
and git_reference_name would return the form of the name that was
used to look it up! This change makes lookup always return the
precomposed name if core.precomposeunicode is set regardless of
which version was used to look it up. The reference iterator was
already returning the precomposed form from earlier work.
This also updates the CMakeLists.txt rules for enabling iconv
usage because the clar tests for this code were actually not being
activated properly with the old version.
Finally, this moves git_repository_reset_filesystem from include/
git2/repository.h to include/git2/sys/repository.h since it is not
really a function that normal library users should have to think
about very often.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed a few header @param and @return typos with the help of -Wdocumentation in Xcode.
The following warnings have not been fixed:
common.h:213 - Not sure how the documentation format is for '...'
notes.h:102 - Correct @param name but empty text
notes.h:111 - Correct @param name but empty text
pack.h:140 - @return missing text
pack.h:148 - @return missing text
|
|\
| |
| | |
Breaking RefDB changes
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Introduce git_reference_shorthand
|
| |
| |
| |
| | |
Generate a shorthand name out of the full refname.
|
|\ \
| | |
| | | |
define "long name" in git_reference_name_to_id
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Introduce a refs 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.
|
|/
|
|
|
| |
Extract this function out of the rev-parse code to be able to DWIM a
reference instead of its target.
|
|
|
|
|
| |
Relax the ONELEVEL ref naming rules so the refspec parsing code can
ask for 'master' to be considered valid.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Currently, push doesn't really handle tags when queueing objects. Fix
it.
|