| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This makes the diff functions that take callbacks both take
the payload parameter after the callback function pointers and
pass the payload as the last argument to the callback function
instead of the first. This should make them consistent with
other callbacks across the API.
|
| | |
|
| |
| |
| |
| | |
As part of API review, use a typedef for the callback fn ptr.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
3f9eb1e introduced support for SSL certificates issued for IP
addresses, making use of in_addr and in_addr6 structs. On FreeBSD
these are defined in (a file included in) <netinet/in.h>, so include
that file on FreeBSD and get the build working again.
|
|\ \
| | |
| | | |
pack.c: Set p->mwf.fd to -1 on error
|
| | |
| | |
| | |
| | |
| | |
| | | |
If p->mwf.fd is e.g. -2 then it is closed in packfile_free and an exception might be thrown.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|/ / |
|
|\ \
| | |
| | | |
Make `git_repository_head_tree()` return error codes
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
Remove words such as fuck, crap, shit etc.
Remove other potentially offensive words from comments.
Tidy up other geopolicital terms in comments.
|
|\ \
| | |
| | | |
It is okay to not have a .gitconfig file
|
| | | |
|
| |/
| |
| |
| |
| |
| | |
Opening a repo is generating an error if you don't have a
.gitconfig file in your home directory, but that should be
legal.
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
This prevents the index api from calling write_tree() with a
bogus tree.
|
|
|
|
| |
As per core git.
|
| |
|
| |
|
|
|
|
|
| |
Passing 0 as the index now retrieves the most recent entry instead
of the oldest one.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
odb: recursively load alternates
|
| |
| |
| |
| | |
The maximum depth is 5, like in git
|
|\ \
| | |
| | | |
Win32 fixes for diff/checkout/reset
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The existing p_lstat implementation on win32 is not quite POSIX
compliant when setting errno to ENOTDIR. This adds an option to
make is be compliant so that code (such as checkout) that cares
to have separate behavior for ENOTDIR can use it portably.
This also contains a couple of other minor cleanups in the
posix_w32.c implementations to avoid unnecessary work.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Using the builtin strcmp and strcasecmp as function pointers is
problematic on win32. This adds internal implementations and
divorces us from the platform linkage.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add option to ignore file mode in diffs
|
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A number of diff APIs and the `git_checkout_index` API take a
`git_repository` object an operate on the index. This updates
them to take a `git_index` pointer explicitly and only fall back
on the `git_repository` index if the index input is NULL. This
makes it easier to operate on a temporary index.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The index iterator could previously only be created from a repo
object, but this allows creating an iterator from a `git_index`
object instead (while keeping, though renaming, the old function).
|
|/ /
| |
| |
| |
| | |
The diff API is not in the parameter order one would expect from
other libgit2 APIs. This fixes that.
|
| |
| |
| |
| |
| | |
Allocate with calloc rather than conditionally memsetting a specific
part of the struct later on.
|
|/ |
|
|\
| |
| | |
Deal with empty and nonexsitent values in config
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Returning NULL for the string when we haven't signaled an error
condition is counter-intuitive and causes unnecessary edge
cases. Return an empty string when asking for a string value for a
configuration variable such as '[section] var' to avoid these edge
cases.
If the distinction between no value and an empty value is needed, this
can be retrieved from the entry directly. As a side-effect, this
change stops the int parsing functions from segfaulting on such a
variable.
|
| |
| |
| |
| |
| |
| | |
'[section] variable' and '[section] variable =' behave differently
when parsed as booleans, so we need to store that distinction
internally.
|
| | |
|
|\ \
| |/
|/| |
Update checkout with new strategies & behavior
|
| |
| |
| |
| |
| | |
This fixes some various warnings that showed up in Travis and
a couple uses of uninitialized memory and one memory leak.
|