Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | tree: remove legacy 'oid' naming | Carlos Martín Nieto | 2014-01-25 | 1 | -3/+3 | |
| | | | | | | | | | | | | Rename git_tree_entry_byoid() to _byid() as per the convention. | |||||
| * | | commit: remvoe legacy 'oid' naming | Carlos Martín Nieto | 2014-01-25 | 1 | -2/+2 | |
| | | | ||||||
| * | | index: rename an entry's id to 'id' | Carlos Martín Nieto | 2014-01-25 | 12 | -59/+59 | |
| | | | | | | | | | | | | This was not converted when we converted the rest, so do it now. | |||||
| * | | note: rename the id getter to git_note_id() | Carlos Martín Nieto | 2014-01-24 | 2 | -4/+4 | |
| |/ | | | | | | | This was left over when we did the general switch. | |||||
* | | refspec: move to git_buf for outputting strings | Carlos Martín Nieto | 2014-01-27 | 6 | -79/+11 | |
| | | ||||||
* | | messsage: use git_buf in prettify() | Carlos Martín Nieto | 2014-01-27 | 1 | -27/+3 | |
| | | | | | | | | | | A lot of the tests were checking for overflow, which we don't have anymore, so we can remove them. | |||||
* | | config: use git_buf for returning paths | Carlos Martín Nieto | 2014-01-27 | 3 | -54/+9 | |
| | | | | | | | | Again, we already did this internally, so simply remove the conversions. | |||||
* | | branch: move to git_buf when outputting newly-allocated strings | Carlos Martín Nieto | 2014-01-27 | 1 | -72/+26 | |
| | | | | | | | | | | Internally we already did everything with git_bufs, so this is just exposing those functions with public names. | |||||
* | | repository: move to use a git_buf for outputting strings | Carlos Martín Nieto | 2014-01-27 | 1 | -32/+9 | |
| | | | | | | | | | | Since we now export that type, we can avoid making the user guess a size. | |||||
* | | Make sure git_remote_dup copies a remote's refspecs correctly. | Arthur Schreiber | 2014-01-26 | 1 | -8/+26 | |
| | | ||||||
* | | Add some missing const declarations. | Arthur Schreiber | 2014-01-26 | 1 | -7/+7 | |
| | | ||||||
* | | Merge pull request #2076 from xtao/fix-zstream | Edward Thomson | 2014-01-26 | 2 | -5/+6 | |
|\ \ | | | | | | | Fix write_object. | |||||
| * | | Fix write_object. | XTao | 2014-01-26 | 2 | -5/+6 | |
| |/ | ||||||
* | | Merge pull request #2057 from GrahamDennis/local-file-url-push-fix | Edward Thomson | 2014-01-26 | 1 | -11/+37 | |
|\ \ | |/ |/| | Fix local push to file:// URL. | |||||
| * | Factor out code to convert local "url" into a path. | Graham Dennis | 2014-01-19 | 1 | -20/+28 | |
| | | | | | | Previously this code was shared between `local_push` and `local_connect`. | |||||
| * | Fix local push to file:// URL. | Graham Dennis | 2014-01-18 | 1 | -1/+19 | |
| | | ||||||
* | | Merge pull request #2074 from linquize/pack-filename-sha1 | Vicent Marti | 2014-01-23 | 2 | -6/+0 | |
|\ \ | | | | | | | Drop parsing pack filename SHA1 part | |||||
| * | | Drop parsing pack filename SHA1 part, no one cares the filename | Linquize | 2014-01-23 | 2 | -6/+0 | |
| | | | ||||||
* | | | Merge pull request #2073 from ethomson/zerobytes | Vicent Marti | 2014-01-22 | 1 | -1/+1 | |
|\ \ \ | | | | | | | | | Sometimes a zero byte file is just a zero byte file | |||||
| * | | | Sometimes a zero byte file is just a zero byte file | Edward Thomson | 2014-01-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | Don't go to the ODB to resolve zero byte files in the workdir | |||||
* | | | | Plug a small memory leak | Ben Straub | 2014-01-22 | 1 | -1/+4 | |
| | | | | ||||||
* | | | | Summarize empty messages | Edward Thomson | 2014-01-22 | 1 | -1/+4 | |
|/ / / | ||||||
* | | | Preserve tree filemode in index during checkout | Edward Thomson | 2014-01-22 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | | | | | Don't try to determine whether the system supports file modes when putting the tree data in the index during checkout. The tree's mode is canonical and did not come from stat(2) in the first place. | |||||
* | | | Drop git_patch_to_str | Nicolas Hake | 2014-01-22 | 1 | -18/+0 | |
| | | | | | | | | | | | | | | | | | | | | | It's hard or even impossible to correctly free the string buffer allocated by git_patch_to_str in some circumstances. Drop the function so people have to use git_patch_to_buf instead - git_buf has a dedicated destructor. | |||||
* | | | Expose patch serialization to git_buf | Nicolas Hake | 2014-01-22 | 1 | -2/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returning library-allocated strings from libgit2 works fine on Linux, but may cause problems on Windows because there is no one C Runtime that everything links against. With libgit2 not exposing its own allocator, freeing the string is a gamble. git_patch_to_str already serializes to a buffer, then returns the underlying memory. Expose the functionality directly, so callers can use the git_buf_free function to free the memory later. | |||||
* | | | Merge submodules | Edward Thomson | 2014-01-20 | 2 | -6/+29 | |
| | | | ||||||
* | | | Support union merges | Edward Thomson | 2014-01-20 | 1 | -0/+2 | |
| | | | ||||||
* | | | Remove the "merge none" flag | Edward Thomson | 2014-01-20 | 1 | -11/+6 | |
| | | | | | | | | | | | | | | | | | | | | | The "merge none" (don't automerge) flag was only to aide in merge trivial tests. We can easily determine whether merge trivial resulted in a trivial merge or an automerge by examining the REUC after automerge has completed. | |||||
* | | | Load merge.conflictstyle setting from config | Edward Thomson | 2014-01-20 | 1 | -0/+23 | |
| | | | ||||||
* | | | Introduce diff3 mode for checking out conflicts | Edward Thomson | 2014-01-20 | 4 | -6/+35 | |
| | | | ||||||
* | | | Don't try to merge binary files | Edward Thomson | 2014-01-20 | 3 | -2/+90 | |
| | | | ||||||
* | | | merge_file should use more aggressive levels | Edward Thomson | 2014-01-20 | 4 | -13/+32 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default merge_file level was XDL_MERGE_MINIMAL, which will produce conflicts where there should not be in the case where both sides were changed identically. Change the defaults to be more aggressive (XDL_MERGE_ZEALOUS) which will more aggressively compress non-conflicts. This matches git.git's defaults. Increase testing around reverting a previously reverted commit to illustrate this problem. | |||||
* | | | Merge pull request #2063 from linquize/reflog-msg-null | Russell Belfer | 2014-01-20 | 1 | -0/+2 | |
|\ \ \ | | | | | | | | | git_reflog_entry_message can be null | |||||
| * | | | git_reflog_entry_message can be null | Linquize | 2014-01-20 | 1 | -0/+2 | |
| |/ / | ||||||
* | | | fix corner cases and an undefined behavior | Patrick Reynolds | 2014-01-20 | 1 | -3/+6 | |
|/ / | ||||||
* | | Merge pull request #2059 from linquize/git_config_get_crash | Edward Thomson | 2014-01-18 | 1 | -0/+1 | |
|\ \ | | | | | | | Fix segfault when calling git_config_get_* functions when a config fails to load | |||||
| * | | Fix segfault when calling git_config_get_* functions when a config fails to load | Linquize | 2014-01-18 | 1 | -0/+1 | |
| | | | | | | | | | | | | Reinitialize the result code of get_entry() to GIT_ENOTFOUND | |||||
* | | | Convert gitdir paths to posix on Windows | Russell Belfer | 2014-01-17 | 1 | -1/+5 | |
| |/ |/| | | | | | | | Apparently, a .git file with "gitdir: path" link on Windows is allowed to use backslashes in the path. Who knew? | |||||
* | | Merge pull request #2050 from libgit2/cmn/always-reflog-message | Vicent Marti | 2014-01-15 | 11 | -74/+68 | |
|\ \ | | | | | | | refs: remove the _with_log differentiation | |||||
| * | | refs: remove the _with_log differentiation | Carlos Martín Nieto | 2014-01-15 | 11 | -74/+68 | |
| | | | | | | | | | | | | | | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters. | |||||
* | | | Move libgit2 settings out of util | Edward Thomson | 2014-01-14 | 2 | -123/+134 | |
| | | | ||||||
* | | | unnecessary include | Edward Thomson | 2014-01-14 | 1 | -1/+0 | |
|/ / | ||||||
* | | Merge pull request #2047 from arthurschreiber/arthur/fix-dup-functions | Vicent Marti | 2014-01-14 | 4 | -26/+30 | |
|\ \ | | | | | | | Align `*_dup` functions | |||||
| * | | Align git_tree_entry_dup. | Arthur Schreiber | 2014-01-14 | 1 | -9/+8 | |
| | | | ||||||
| * | | Align git_signature_dup. | Arthur Schreiber | 2014-01-14 | 3 | -17/+22 | |
| | | | | | | | | | | | | | | | | | | This changes git_signature_dup to actually honor oom conditions raised by the call to git__strdup. It also aligns it with the error code return pattern used everywhere else. | |||||
* | | | We don't need memset here. | Arthur Schreiber | 2014-01-14 | 1 | -2/+0 | |
| | | | ||||||
* | | | Don't duplicate state that's only used when fetching. | Arthur Schreiber | 2014-01-14 | 1 | -1/+0 | |
|/ / | ||||||
* | | Add `git_remote_dup`. | Arthur Schreiber | 2014-01-14 | 1 | -0/+41 | |
| | | ||||||
* | | Merge pull request #2043 from arthurschreiber/arthur/fix-memory-leaks | Vicent Marti | 2014-01-14 | 5 | -10/+19 | |
|\ \ | | | | | | | Fix a bunch of memory leaks. | |||||
| * | | Incorporate @arrbee's suggestions. | Arthur Schreiber | 2014-01-14 | 1 | -14/+12 | |
| | | |