- 17 Jul, 2012 1 commit
-
-
Partially fix #530
nulltoken committed
-
- 15 Jul, 2012 1 commit
-
-
Pevents collisions with the original libgit, which also exports those exact symbols. Fixes #822
Vicent Marti committed
-
- 12 Jul, 2012 1 commit
-
-
Carlos Martín Nieto committed
-
- 11 Jul, 2012 6 commits
-
-
nulltoken committed
-
nulltoken committed
-
nulltoken committed
-
Vicent Marti committed
-
This added a flag to the `git_repository_set_workdir()` function that enables generation of a `.git` gitlink file that links the new workdir to the parent repository. Essentially, the flag tells the function to write out the changes to disk to permanently set the workdir of the repository to the new path. If you pass this flag as true, then setting the workdir to something other than the default workdir (i.e. the parent of the .git repo directory), will create a plain file named ".git" with the standard gitlink contents "gitdir: <repo-path>", and also update the "core.worktree" and "core.bare" config values. Setting the workdir to the default repo workdir will clear the core.worktree flag (but still permanently set core.bare to false). BTW, the libgit2 API does not currently provide a function for clearing the workdir and converting a non-bare repo into a bare one.
Russell Belfer committed -
Adding a new config iteration function that let's you iterate over just the config entries that match a particular regular expression. The old foreach becomes a simple use of this with an empty pattern. This also fixes an apparent bug in the existing `git_config_foreach` where returning a non-zero value from the iteration callback was not correctly aborting the iteration and the returned value was not being propogated back to the caller of foreach. Added to tests to cover all these changes.
Russell Belfer committed
-
- 07 Jul, 2012 2 commits
- 03 Jul, 2012 2 commits
-
-
Kevin Sawicki committed
-
Go through each backend and list every objects that exists in them. This allows fsck-like uses.
Carlos Martín Nieto committed
-
- 02 Jul, 2012 1 commit
-
-
Default in git core is 0, not 3
yorah committed
-
- 29 Jun, 2012 2 commits
-
-
Vicent Marti committed
-
Smaller, simpler, faster.
Vicent Marti committed
-
- 28 Jun, 2012 1 commit
-
-
Not everyone who indexes a packfile wants to put it in the standard git repository location.
Carlos Martín Nieto committed
-
- 22 Jun, 2012 2 commits
-
-
nulltoken committed
-
Vicent Marti committed
-
- 21 Jun, 2012 2 commits
- 19 Jun, 2012 3 commits
-
-
Russell Belfer committed
-
This fixes git_index_add and git_index_append to behave more like core git, preserving old filemode data in the index when adding and/or appending with core.filemode = false. This also has placeholder support for core.symlinks and core.ignorecase, but those flags are not implemented (well, symlinks has partial support for preserving mode information in the same way that git does, but it isn't tested).
Russell Belfer committed -
git_commit() and git_tag() no longer prettify the message by default. This has to be taken care of by the caller. This has the nice side effect of putting the caller in position to actually choose to strip the comments or not.
nulltoken committed
-
- 14 Jun, 2012 1 commit
-
- 12 Jun, 2012 1 commit
-
-
This function has been available for some time, but never in a header. Expose it so we can use it from outside the library.
Carlos Martín Nieto committed
-
- 09 Jun, 2012 1 commit
-
-
Chris Young committed
-
- 08 Jun, 2012 4 commits
-
-
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`.
Russell Belfer committed -
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.
Russell Belfer committed -
Chris Young committed
-
Chris Young committed
-
- 07 Jun, 2012 6 commits
-
-
Chris Young committed
-
Chris Young committed
-
Vicent Martí committed
-
Currently supports Soft and Mixed modes.
nulltoken committed -
nulltoken committed
-
nulltoken committed
-
- 05 Jun, 2012 1 commit
-
-
Chris Young committed
-
- 29 May, 2012 1 commit
-
-
nulltoken committed
-
- 26 May, 2012 1 commit
-
-
Sometimes it's useful not to perform the check. Allow it to be configurable.
Carlos Martín Nieto committed
-