| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|
|
|
|
|
|
| |
In looking at PR #878, I found a few small bugs in the diff code,
mostly related to work that can be avoided when processing tree-
to-tree diffs that was always being carried out. This commit has
some small fixes in it.
|
|\
| |
| | |
API for managing in-memory ignore rules
|
| |
| |
| |
| | |
This fills out the ignore API and adds tests.
|
| |
| |
| |
| |
| |
| |
| | |
This creates a public API for adding to the internal ignores
list, which already existing but was not accessible.
This adds the new default value for core.excludesfile also.
|
| | |
|
|/ |
|
|\
| |
| | |
Make the memory-window conrol structures global
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Up to now, the idea was that the user would do all the operations for
one repository in the same thread. Thus we could have the
memory-mapped window information thread-local and avoid any locking.
This is not practical in a few environments, such as Apple's GCD which
allocates threads arbitrarily or the .NET CLR, where the OS-level
thread can change at any moment.
Make the control structure global and protect it with a mutex so we
don't depend on the thread currently executing the code.
|
| | |
|
|\ \
| |/
|/| |
Clone
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Global file mode override now works properly with
the file mode stored in the tree node.
|
| | |
|
| |
| |
| |
| |
| | |
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_*.
|
| | |
|
| |
| |
| |
| | |
Now creating intermediate directories where the
submodule is deep, like "src/deps/foosubmodule".
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
| | | |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | |
| | | |
| | | | |
Includes unfinished win32 implementation.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also removes the unnecessary check for filter
length, since git_filters_apply does the right
thing when there are none, and it's more efficient
than this.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Ben Straub <bstraub@github.com>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Also, remove some duplication in the clone test
suite.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|