| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
When `git_submodule` became an opaque structure, I forgot to add
accessor functions for the fetchRecurseSubmodules config setting.
This fixes that.
|
|\
| |
| | |
Expose a malloc function to 3rd party ODB backends
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This adds better header comments and also fixes a bug in one of
simple APIs that tells the number of lines in the current hunk.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This refactors the diff output code so that an iterator object
can be used to traverse and generate the diffs, instead of just
the `foreach()` style with callbacks. The code has been rearranged
so that the two styles can still share most functions.
This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses
that as a common error code for marking the end of iteration when
using a iterator style of object.
|
|\ \
| | |
| | | |
Windows: Perform UTF-8 path conversion on the Stack
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
include/git2/refs.h
|
| |/ |
|
|\ \
| | |
| | | |
Make git_object_peel a bit smarter
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This expands the types of peeling that `git_object_peel` knows
how to do to include TAG -> BLOB peeling, and makes the errors
slightly more consistent depending on the situation. It also
adds a new special behavior where peeling to ANY will peel until
the object type changes (e.g. chases TAGs to a non-TAG).
Using this expanded peeling, this replaces peeling code that was
embedded in `git_tag_peel` and `git_reset`.
|
|\ \
| |/
|/| |
refs: expose git_reference_normalize_name()
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
It's not really needed with the current code as we have EOS and the
sideband's flush to tell us we're done.
Keep the distinction between processed and received objects.
|
|\ \
| | |
| | | |
Add sideband support
|
| | |
| | |
| | |
| | |
| | | |
This lets us notify the user of what the remote end is doing while we
wait for it to start sending us the packfile.
|
| |/
| |
| |
| |
| | |
We can't always rely on the network telling us when the download is
finished. Recognize it from the indexer itself.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a big redesign of the git_submodule_status API and the
implementation of the redesigned API. It also fixes a number of
bugs that I found in other parts of the submodule API while
writing the tests for the status part.
This also fixes a couple of bugs in the iterators that had not
been noticed before - one with iterating when there is a gitlink
(i.e. separate-work-dir) and one where I was treating anything
even vaguely submodule-like as a submodule, more aggressively
than core git does.
|
|/
|
|
|
| |
This replaces the old submodule API with a new extended API that
supports most of the things that can be done with `git submodule`.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This cleans up a number of items suggested during code review
with @vmg, including:
* renaming "outside repo" config API to `git_config_open_default`
* killing the `git_config_open_global` API
* removing the `git_` prefix from the static functions in fileops
* removing some unnecessary functionality from the "cp" command
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This extends git_repository_init_ext further with support for
initializing the repository from an external template directory
and with support for the "create shared" type flags that make a
set GID repository directory.
This also adds tests for much of the new functionality to the
existing `repo/init.c` test suite.
Also, this adds a bunch of new utility functions including a
very general purpose `git_futils_mkdir` (with the ability to
make paths and to chmod the paths post-creation) and a file
tree copying function `git_futils_cp_r`. Also, this includes
some new path functions that were useful to keep the code
simple.
|
|
|
|
|
|
|
| |
The extended version of repository init adds support for many
of the things that you can do with `git init` and sets up
structures that will make it easier to extend further in the
future.
|
|\
| |
| | |
API for managing in-memory ignore rules
|
| |
| |
| |
| | |
This fills out the ignore API and adds tests.
|
| | |
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
Clone
|
| | |
|
| |
| |
| | |
Also correcting some documentation strings.
|
| |
| |
| |
| |
| | |
Replace with the contents of
git_index_read_tree_with_stats() and improve
documentation comments.
|
| |
| |
| |
| |
| | |
New variant of git_index_read_tree that fills in
the 'total' field of a git_indexer_stats struct
as it's walking the tree.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Renamed git_checkout_index to what it really was,
and removed duplicate code from clone.c. Added
git_checkout_ref, which updates HEAD and hands off
to git_checkout_head.
Added tests for the options the caller can pass to
git_checkout_*.
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Removed the #define for defaults
* Promoted progress structure to top-level API call
argument
|
| | |
| | |
| | |
| | |
| | | |
Refactor checkout into several more-sensible
entry points, which consolidates common options
into a single structure that may be passed around.
|
| |\ \ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
So far they only create a repo, setup the "origin"
remote, and fetch. The API probably needs work as
well; there's no way to get progress information
at this point.
Also uncovered a shortcoming; git_remote_download
doesn't fetch over local transport.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
git_tree_walk callback return value semantic does not match documentation
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Returning a negative cancels the walk, and returning a positive one
causes us to skip an entry, which was previously done by a negative
value.
This allows us to stay consistent with the rest of the functions that
take a callback and keeps the skipping functionality.
|