| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
http://github.com/libgit2/libgit2/pull/766
|
| |\ |
|
| | | |
|
| | | |
|
| | |\
| | |
| | | |
make git_repository_init() value the core.logallrefupdates config entry
|
| | | |
| | |
| | |
| | | |
config entry
|
| | |/ |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Missed a place that used this and missed git__isalpha
|
| | |
| |
| |
| |
| |
| |
| | |
When checking for a drive letter on windows, instead of using
isalpha(), it is better to just check for a..z and A..Z, I think,
particularly because the MS isalpha implementation appears to
assert when given an 0xFF byte.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are three actual changes in this commit:
1. When the trailing newline of a file is removed in a diff, the
change will now be reported with `GIT_DIFF_LINE_DEL_EOFNL` passed
to the callback. Previously, the `ADD_EOFNL` constant was given
which was just an error in my understanding of when the various
circumstances arose. `GIT_DIFF_LINE_ADD_EOFNL` is deprecated and
should never be generated. A new newline is simply an `ADD`.
2. Rewrote the `diff_delta__merge_like_cgit` function that contains
the core logic of the `git_diff_merge` implementation. The new
version doesn't actually have significantly different behavior,
but the logic should be much more obvious, I think.
3. Fixed a bug in `git_diff_merge` where it freed a string pool
while some of the string data was still in use. This led to
`git_diff_print_patch` accessing memory that had been freed.
The rest of this commit contains improved documentation in `diff.h`
to make the behavior and the equivalencies with core git clearer,
and a bunch of new tests to cover the various cases, oh and a minor
simplification of `examples/diff.c`.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
File modes were both not being ignored properly on platforms
where they should be ignored, nor be diffed consistently on
platforms where they are supported.
This change adds a number of diff and status filemode change
tests. This also makes sure that filemode-only changes are
included in the diff output when they occur and that filemode
changes are ignored successfully when core.filemode is false.
There is no code that automatically toggles core.filemode
based on the capabilities of the current platform, so the user
still needs to be careful in their .git/config file.
|
| | | |
|
| | | |
|
| | |\
| | |
| | | |
Add git_reset()
|
| | | |
| | |
| | |
| | | |
Currently supports Soft and Mixed modes.
|
| | |\ \
| | | |
| | | | |
Rev parse
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Converted an internal utility to return an oid,
rather than a tree entry (whose lifetime is tied
to the parent tree, which was freed before
returning).
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | |\ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
src/util.h
tests-clar/refs/branches/listall.c
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also use git_time_t (64-bit integer) for time
values, although the 2038 problem is still present
on 32-bit machines.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Ported the win32 implementations of gmtime_r,
localtime_r, and gettimeofday to be part of the
posix compatibility layer, and fixed
git_signature_now to use them.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixed an error where "nonexistant^N" or similar
would fall into an assert. This now properly returns
an error.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Ported date.c (for approxidate_careful) from git.git
revision aa39b85. Trimmed out the parts we're not
using.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Added tracking configuration to the test repo's
config to support unit tests.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Removed repeated strlen's, and unnecessary loop-termination variable.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Added some reflags to the test repo to support
unit tests.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also extended the test suite to include chaining
operators, e.g. "master^2~3^4".
|