- 08 Sep, 2015 2 commits
-
-
On case insensitive platforms, allow `git_index_add` to provide a new path for an existing index entry. Previously, we would maintain the case in an index entry without the ability to change it (except by removing an entry and re-adding it.) Higher-level functions (like `git_index_add_bypath` and `git_index_add_frombuffers`) continue to keep the old path for easier usage.
Edward Thomson committed -
On case insensitive systems, when given a user-provided path in the higher-level index addition functions (eg `git_index_add_bypath` / `git_index_add_frombuffer`), examine the index to try to match the given path to an existing directory. Various mechanisms can cause the on-disk representation of a folder to not match the representation in HEAD or the index - for example, a case changing rename of some file `a/file.txt` to `A/file.txt` will update the paths in the index, but not rename the folder on disk. If a user subsequently adds `a/other.txt`, then this should be stored in the index as `A/other.txt`.
Edward Thomson committed
-
- 06 Sep, 2015 2 commits
-
-
filebuf: follow symlinks when creating a lock file
Edward Thomson committed -
Use a hashmap for path-based lookups in the index
Edward Thomson committed
-
- 05 Sep, 2015 1 commit
-
-
We create a lockfile to update files under GIT_DIR. Sometimes these files are actually located elsewhere and a symlink takes their place. In that case we should lock and update the file at its final location rather than overwrite the symlink.
Carlos Martín Nieto committed
-
- 04 Sep, 2015 1 commit
-
-
This should let us see more clearly what we're doing and avoid the ugly 'if' we need every time we want to interact with the map.
Carlos Martín Nieto committed
-
- 03 Sep, 2015 1 commit
-
-
Carlos Martín Nieto committed
-
- 01 Sep, 2015 1 commit
-
-
Provide path matching in the iterators (for faster diffs)
Carlos Martín Nieto committed
-
- 31 Aug, 2015 4 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Some nicer refactoring for index iteration walks. The index iterator doesn't binary search through the pathlist space, since it lacks directory entries, and would have to binary search each index entry and all its parents (eg, when presented with an index entry of `foo/bar/file.c`, you would have to look in the pathlist for `foo/bar/file.c`, `foo/bar` and `foo`). Since the index entries and the pathlist are both nicely sorted, we walk the index entries in lockstep with the pathlist like we do for other iteration/diff/merge walks.
Edward Thomson committed
-
- 30 Aug, 2015 6 commits
-
-
Now that non-pathspec matching diffs are implemented at the iterator level, drop `FILELIST_MATCH`ing.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
When using literal pathspecs in diff with `GIT_DIFF_DISABLE_PATHSPEC_MATCH` turn on the faster iterator pathlist handling. Updates iterator pathspecs to include directory prefixes (eg, `foo/`) for compatibility with `GIT_DIFF_DISABLE_PATHSPEC_MATCH`.
Edward Thomson committed -
Escape @ in doc comment
Carlos Martín Nieto committed
-
- 29 Aug, 2015 2 commits
-
-
Ben Chatelain committed
-
Document that `GIT_DIFF_PATHSPEC_DISABLE` is not necessarily about explicit path matching, but also includes matching of directory names. Enforce this in a test.
Edward Thomson committed
-
- 28 Aug, 2015 5 commits
-
-
win32: ensure hidden files can be staged
Edward Thomson committed -
When given a pathlist, don't assume that directories sort before files. Walk through any list of entries sorting before us to make sure that we've exhausted all entries that *aren't* directories. Eg, if we're searching for 'foo/bar', and we have a 'foo.c', keep advancing the pathlist to keep looking for an entry prefixed with 'foo/'.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
- 26 Aug, 2015 2 commits
-
-
Fix a typo [ci skip]
Edward Thomson committed -
Arthur Schreiber committed
-
- 25 Aug, 2015 2 commits
-
-
COPYING: include winhttp definition copyright
Carlos Martín Nieto committed -
Include the copyright notice from the deps/winhttp/ sources. Move the LGPL to the bottom of the file (since multiple dependencies are LGPL licensed) and include the actual copyright notices from the regex sources.
Edward Thomson committed
-
- 24 Aug, 2015 1 commit
-
-
Include the 4 characters not recognised as hex-number in parse_len
Carlos Martín Nieto committed
-
- 20 Aug, 2015 2 commits
-
-
transport: provide a way to get the callbacks
Carlos Martín Nieto committed -
CMake: fall back to OpenSSL on older OS X
Carlos Martín Nieto committed
-
- 19 Aug, 2015 3 commits
-
-
Starting at OS X 10.8, the Security framework offers some functions which are unified across OS X and iOS. These are the functions that we use. Older versions of OS X do not have these functions and we fail to compile. In these situations, fall back to using OpenSSL for our TLS stream instead.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
libgit2 implementations of smart subtransports can simply reach through the structure, but external implementors cannot. Add these two functions as a way for the smart subtransports to get the callbacks as set by the user.
Carlos Martín Nieto committed
-
- 18 Aug, 2015 1 commit
-
-
Fix build warning: implicit declaration of function ‘git_transaction_config_new’
Carlos Martín Nieto committed
-
- 17 Aug, 2015 2 commits
-
-
Leo Yang committed
-
Anders Borum committed
-
- 15 Aug, 2015 2 commits
-
-
Fix bug in git_smart__push: push_transfer_progress cb is only called at end
Edward Thomson committed -
diff: don't error out on an invalid regex
Edward Thomson committed
-