Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add git_diff_commit and last-changed examplerb/commit-modified-file | Russell Belfer | 2014-04-21 | 1 | -0/+19 |
| | | | | | | | | | | | | This adds a new diff API `git_diff_commit` which makes it easy to generate a `git_diff` object that represents the changes in a given commit. It follows the core Git rules for considering changes in a merge commit - i.e. if a file has an exact match in any parent of the commit, then the file is considered unmodified by the merge. This also adds a new example program "last-changed" which takes a list of filenames and for each one displays the SHA of the last commit that changed that file. | ||||
* | Replace void * with proper callback types | Jacques Germishuys | 2014-04-18 | 1 | -2/+2 |
| | |||||
* | Make git_cred_ssh_custom_new() naming more consistent | Jacques Germishuys | 2014-04-18 | 1 | -5/+5 |
| | |||||
* | Introduce git_cred_ssh_interactive_new() | Jacques Germishuys | 2014-04-18 | 1 | -0/+30 |
| | | | | This allows for keyboard-interactive based SSH authentication | ||||
* | Fix leak in git_index_conflict_cleanup | Russell Belfer | 2014-04-17 | 1 | -7/+12 |
| | | | | | | | | | | | | | I introduced a leak into conflict cleanup by removing items from inside the git_vector_remove_matching call. This simplifies the code to just use one common way for the two conflict cleanup APIs. When an index has an active snapshot, removing an item can cause an error (inserting into the deferred deletion vector), so I made the git_index_conflict_cleanup API return an error code. I felt like this wasn't so bad since it is just like the other APIs. I fixed up a couple of comments while I was changing the header. | ||||
* | Add public diff print helpers | Russell Belfer | 2014-04-17 | 1 | -0/+63 |
| | | | | | | | The usefulness of these helpers came up for me while debugging some of the iterator changes that I was making, so since they have also been requested (albeit indirectly) I thought I'd include them. | ||||
* | Some index internals refactoring | Russell Belfer | 2014-04-17 | 1 | -4/+11 |
| | | | | | | | | Again, laying groundwork for some index iterator changes, this contains a bunch of code refactorings for index internals that should make it easier down the line to add locking around index modifications. Also this removes the redundant prefix_position function and fixes some potential memory leaks. | ||||
* | Merge pull request #2261 from jacquesg/format-patch | Vicent Marti | 2014-04-16 | 2 | -3/+176 |
|\ | | | | | Support for format-patch | ||||
| * | Introduce git_diff_format_email and git_diff_commit_as_email | Jacques Germishuys | 2014-04-15 | 1 | -0/+88 |
| | | |||||
| * | Introduce git_diff_get_stats, git_diff_stats_files_changed, ↵ | Jacques Germishuys | 2014-04-15 | 1 | -0/+85 |
| | | | | | | | | git_diff_stats_insertions, git_diff_stats_deletions and git_diff_stats_to_buf | ||||
| * | Fix const-correctness of git_patch_get_delta, git_patch_num_hunks, ↵ | Jacques Germishuys | 2014-04-11 | 1 | -3/+3 |
| | | | | | | | | git_patch_num_lines_in_hunk | ||||
* | | Add GIT_BRANCH_ALL to git_branch_t enum | Sven Strickroth | 2014-04-16 | 2 | -1/+2 |
| | | | | | | | | | | | | | | | | git_branch_t is an enum so requesting GIT_BRANCH_LOCAL | GIT_BRANCH_REMOTE is not possible as it is not a member of the enum (at least VS2013 C++ complains about it). This fixes a regression introduced in commit a667ca8298193b3103c1dbdcb1f6c527e6e99eb2 (PR #1946). Signed-off-by: Sven Strickroth <email@cs-ware.de> | ||||
* | | Added cherry-pick support | Jacques Germishuys | 2014-04-14 | 2 | -0/+89 |
|/ | |||||
* | Const correctness! | Jacques Germishuys | 2014-04-03 | 6 | -12/+15 |
| | |||||
* | Give the correct name for the function in the doc.fix-memory-index-doc-comment | Rob Rix | 2014-04-02 | 1 | -2/+2 |
| | | | Per @carlosmn, git_index_add is now named git_index_add_bypath. | ||||
* | Correct a stale reference to GIT_EBAREINDEX | Rob Rix | 2014-04-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2208 from libgit2/vmg/mempack | Russell Belfer | 2014-04-01 | 2 | -0/+96 |
|\ | | | | | In-memory packing backend | ||||
| * | In-memory packing backendvmg/mempack | Vicent Marti | 2014-03-26 | 2 | -0/+96 |
| | | |||||
* | | Merge pull request #2206 from libgit2/cmn/inmemory-swap-order | Vicent Marti | 2014-04-01 | 1 | -7/+7 |
|\ \ | | | | | | | Rename in-memory remote to anonymous and swap url and fetch order | ||||
| * | | remote: rename inmemory to anonymous and swap url and fetch order | Carlos Martín Nieto | 2014-04-01 | 1 | -7/+7 |
| |/ | | | | | | | | | | | | | | | | | | | The order in this function is the opposite to what create_with_fetchspec() has, so change this one, as url-then-refspec is what git does. As we need to break compilation and the swap doesn't do that, let's take this opportunity to rename in-memory remotes to anonymous as that's really what sets them apart. | ||||
* | | Const up members of git_merge_file_result | Edward Thomson | 2014-03-31 | 1 | -2/+2 |
| | | |||||
* | | Introduce git_merge_head_id | Edward Thomson | 2014-03-31 | 1 | -0/+9 |
| | | |||||
* | | Fix segfault if gitmodules is invalid | Russell Belfer | 2014-03-26 | 1 | -3/+3 |
| | | | | | | | | | | | | The reload_all call could end up dereferencing a NULL pointer if there was an error while attempting to load the submodules config data (i.e. invalid content in the gitmodules file). This fixes it. | ||||
* | | Merge pull request #2204 from libgit2/rb/submodule-reference-counting | Vicent Marti | 2014-03-26 | 1 | -14/+30 |
|\ \ | |/ |/| | Make submodules externally refcounted | ||||
| * | Make submodules externally refcounted | Russell Belfer | 2014-03-25 | 1 | -14/+30 |
| | | | | | | | | | | | | | | | | `git_submodule` objects were already refcounted internally in case the submodule name was different from the path at which it was stored. This makes that refcounting externally used as well, so `git_submodule_lookup` and `git_submodule_add_setup` return an object that requires a `git_submodule_free` when done. | ||||
* | | Merge pull request #2181 from anuraggup/hide_cb | Edward Thomson | 2014-03-25 | 1 | -0/+24 |
|\ \ | |/ |/| | Callback function to hide commit and its parents in revision walker | ||||
| * | Correcting format of comments in header file | Anurag Gupta | 2014-03-24 | 1 | -13/+13 |
| | | |||||
| * | Unit Tests for hide_cb in revwalk | Anurag Gupta | 2014-03-24 | 1 | -2/+2 |
| | | |||||
| * | Callback to hide commits in revision walker. | Anurag Gupta | 2014-03-24 | 1 | -0/+24 |
| | | |||||
* | | Merge pull request #2183 from ethomson/merge_refactor | Vicent Marti | 2014-03-24 | 2 | -111/+224 |
|\ \ | |/ |/| | Refactor the `git_merge` API | ||||
| * | UNBORN implies FAST_FORWARD | Edward Thomson | 2014-03-20 | 1 | -2/+2 |
| | | |||||
| * | Introduce GIT_MERGE_ANALYSIS_UNBORN | Edward Thomson | 2014-03-20 | 1 | -0/+7 |
| | | |||||
| * | git_merge_status -> git_merge_analysis | Edward Thomson | 2014-03-20 | 1 | -10/+13 |
| | | |||||
| * | Remove `git_merge_result` as it's now unnecessary | Edward Thomson | 2014-03-20 | 1 | -60/+4 |
| | | |||||
| * | Update git_merge_tree_opts to git_merge_options | Edward Thomson | 2014-03-20 | 2 | -16/+16 |
| | | |||||
| * | Change signature of `git_merge` to take merge and checkout opts | Edward Thomson | 2014-03-20 | 1 | -28/+4 |
| | | |||||
| * | Remove fastforward / uptodate from `git_merge` | Edward Thomson | 2014-03-20 | 1 | -27/+1 |
| | | |||||
| * | Add `git_merge_status` to provide info about an upcoming merge | Edward Thomson | 2014-03-20 | 1 | -0/+40 |
| | | |||||
| * | Introduce git_merge_file for consumers | Edward Thomson | 2014-03-20 | 1 | -0/+169 |
| | | |||||
* | | opts: bits are not bytes | Carlos Martín Nieto | 2014-03-24 | 1 | -1/+1 |
| | | | | | | | | | | The default cache size is 256 megabytes, not megabits as claimed in the docs. | ||||
* | | settings: use git_buf for returning strings | Carlos Martín Nieto | 2014-03-24 | 1 | -5/+4 |
|/ | | | | | This survived the last round of culling, as the signature is only in the comments. | ||||
* | Merge pull request #2189 from Aimeast/octopus | Vicent Marti | 2014-03-18 | 1 | -1/+16 |
|\ | | | | | Implement git_merge_base_octopus | ||||
| * | Implement git_merge_base_octopus | Aimeast | 2014-03-18 | 1 | -1/+16 |
| | | |||||
* | | Merge pull request #2192 from phkelley/development | Vicent Marti | 2014-03-18 | 1 | -1/+2 |
|\ \ | |/ |/| | Seamless support for NTLM/Kerberos auth on Windows | ||||
| * | Seamless support for NTLM/Kerberos auth on Windows | Philip Kelley | 2014-03-18 | 1 | -1/+2 |
| | | |||||
* | | branch: constness fixes | Carlos Martín Nieto | 2014-03-17 | 2 | -2/+2 |
|/ | |||||
* | refs: fix copy-paste doc error | Carlos Martín Nieto | 2014-03-13 | 1 | -1/+1 |
| | |||||
* | Add git_submodule_resolve_url() | Jan Melcher | 2014-03-10 | 1 | -0/+10 |
| | |||||
* | Merge pull request #2028 from libgit2/options-names | Vicent Marti | 2014-03-07 | 4 | -29/+29 |
|\ | | | | | Rename options structures | ||||
| * | git_revert_opts -> git_revert_optionsoptions-names | Ben Straub | 2014-03-06 | 1 | -9/+9 |
| | |