| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| | |
`git_rebase_init` and `git_rebase_open` should take a
`git_rebase_options` and use it for future rebase operations on
that `rebase` object.
|
| | |
|
| | |
|
|/
|
|
|
|
| |
In `git_rebase_operation_current()`, indicate when a rebase has not
started (with `GIT_REBASE_NO_OPERATION`) rather than conflating that
with the first operation being in-progress.
|
|\
| |
| | |
Implement git_submodule_set_branch.
|
| | |
|
|\ \
| | |
| | | |
Handle hide-then-push in the revwalk
|
| | |
| | |
| | |
| | |
| | |
| | | |
As it seems it's not quite clear what it means to push a commit, try to
be more explicit about adding a new root and that we may not see this
commit if it is hidden.
|
|\ \ \
| |/ /
|/| | |
Make sure to pack referenced objects for non-branches
|
| |/
| |
| |
| |
| |
| | |
This function recursively inserts the given object and any referenced
ones. It can be thought of as a more general version of the functions to
insert a commit or tree.
|
| | |
|
|\ \
| | |
| | | |
Add a custom param to git_smart_subtransport_definition
|
| | |
| | |
| | |
| | |
| | | |
The smart transport has already take the payload param. For the
sub transport a payload param is useful for the implementer.
|
|\ \ \
| | | |
| | | | |
note: use a git_buf to return the default namespace
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
The caller has otherwise no way to know how long the string will be
allocated or ability to free it.
This fixes #2944.
|
|\ \ \
| |/ /
|/| | |
Allow merges of files (and trees) with whitespace problems/fixes
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add annotated versions of ref-modying functions
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This extra constructor will be useful for the annotated versions of
ref-modifying functions, as it allows us to create a commit with the
extended sha syntax which was used to retrieve it.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
We do not always want to put the id directly into the reflog, but we
want to speicfy what a user typed. For this use-case we provide
annotated version of a few functions which let the caller specify what
user-friendly name was used when asking for the operation.
|
|\ \ \
| |/ /
|/| | |
[WIP] Smarter pack-building
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Most use-cases for the object packer communicate in terms of commits
which each side has. We already have an object to specify this
relationship between commits, namely git_revwalk.
By knowing which commits we want to pack and which the other side
already has, we can perform similar optimisations to git, by marking
each tree as interesting or uninteresting only once, and not sending
those trees which we know the other side has.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| | |
git_index_add_frombuffer enables now to store a memory buffer in the odb
and to store an entry in the index directly if the index is attached to a
repository.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changes the get_entry() method to return a refcounted version of
the config entry, which you have to free when you're done.
This allows us to avoid freeing the memory in which the entry is stored
on a refresh, which may happen at any time for a live config.
For this reason, get_string() has been forbidden on live configs and a
new function get_string_buf() has been added, which stores the string in
a git_buf which the user then owns.
The functions which parse the string value takea advantage of the
borrowing to parse safely and then release the entry.
|
| |
| |
| |
| |
| |
| | |
We want to use the "checkout: moving from ..." message in order to let
git know when a change of branch has happened. Make the convenience
functions for this goal write this message.
|
| |
| |
| |
| | |
We always use "update by push".
|
| |
| |
| |
| |
| |
| |
| | |
This namespace is about behaving like git's branch command, so let's do
exactly that instead of taking a reflog message.
This override is still available via the reference namespace.
|
| |
| |
| |
| |
| | |
This function is meant to simulate what git does in the reset command,
so we should include the reflog message in that.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.
In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
|
|\ \
| | |
| | | |
Allow checkout to handle newly cloned repositories, remove `GIT_CHECKOUT_SAFE_CREATE`
|
| |/ |
|
|/
|
|
|
|
|
|
|
| |
Win32 DLLs have four fields for the version number (major, minor,
teeny, patch). If a consumer wants to build a custom DLL, it may
be useful to set the patchlevel version number in the DLL.
This value only affects the DLL version number, it does not affect
the resultant "version number", which remains major.minor.teeny.
|
|
|
|
|
| |
For consistency with the rest of the library, where an opt is an
options *structure*.
|
| |
|
|
|
|
|
|
|
| |
Add structures and preliminary functions to take a buffer, file or
blob and write the contents in chunks through an arbitrary number
of chained filters, finally writing into a user-provided function
accept the contents.
|
|\
| |
| | |
merge: lock index during the merge (not just checkout)
|
| | |
|
|/
|
|
|
| |
Don't require the branch to rebase, if given `NULL`, simply look up
`HEAD`.
|
|\
| |
| | |
Fix doc comment formatting
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
config: add parsing and getter for paths
|
| | |
|