summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rev-parse: better error handling for chaining.Ben Straub2012-05-112-1/+6
| | | | | Fixed an error where "nonexistant^N" or similar would fall into an assert. This now properly returns an error.
* Rebasing onto libgit2/development: cleanup.Ben Straub2012-05-1116-10/+11
|
* Rev-parse: proper error checking.Ben Straub2012-05-111-22/+24
|
* Rev-parse: regex check for "git describe" output.Ben Straub2012-05-111-0/+17
|
* Plugging memory leak.Ben Straub2012-05-111-0/+2
|
* Rev-parse: now capturing and reporting regex errors.Ben Straub2012-05-112-5/+16
|
* Rev-parse: now @{-N} syntax searches in the right direction!Ben Straub2012-05-111-13/+19
|
* Now properly handling branches with "-g" in their names.Ben Straub2012-05-113-3/+5
|
* Simplifying revparse_lookup_fully_qualified_ref.Ben Straub2012-05-111-16/+4
|
* Fixing broken tests.Ben Straub2012-05-112-5/+5
|
* Rev-parse: @{time} syntax.Ben Straub2012-05-118-44/+1005
| | | | | | Ported date.c (for approxidate_careful) from git.git revision aa39b85. Trimmed out the parts we're not using.
* Rev-parse: "ref^{/regex}" syntax.Ben Straub2012-05-112-6/+62
|
* Rev-parse: fixing double-freeing. Thanks, Visual Studio!Ben Straub2012-05-111-1/+1
|
* Rev-parse: "ref@{upstream}" syntax.Ben Straub2012-05-114-3/+30
| | | | | Added tracking configuration to the test repo's config to support unit tests.
* Fixed last 2 memory leaks in rev-parse.Ben Straub2012-05-111-13/+13
|
* Rev-parse: plugging (most) memory leaks.Ben Straub2012-05-112-102/+71
|
* Incorporating feedback from @tanoku.Ben Straub2012-05-111-8/+9
| | | | Removed repeated strlen's, and unnecessary loop-termination variable.
* Rev-parse chaining: adding the longest chainBen Straub2012-05-111-0/+2
| | | | in the test repo.
* Implementing rev-parse's ref@{n} and @{-n} syntaxes.Ben Straub2012-05-116-17/+127
| | | | | Added some reflags to the test repo to support unit tests.
* Adding comment documentation for rev-parse api.Ben Straub2012-05-111-3/+17
|
* Implementing rev-parse's "ref~2" syntax.Ben Straub2012-05-112-0/+71
| | | | | Also extended the test suite to include chaining operators, e.g. "master^2~3^4".
* Removed goto from state machine loop.Ben Straub2012-05-111-22/+17
|
* Returning error if dereferencing operation fails.Ben Straub2012-05-112-1/+6
|
* Implemented rev-parse "^{type}" syntax.Ben Straub2012-05-112-20/+22
|
* Implemented rev-parse's "^{}" syntax.Ben Straub2012-05-115-35/+102
|
* Implemented partial caret syntax for rev-parse.Ben Straub2012-05-112-7/+52
| | | | | | | | | Supported forms: - "^n" - "^0" - "^" Still missing: all of the "^{…}" variants.
* Simpler states and initial structure.Ben Straub2012-05-112-27/+139
| | | | | | New tests for "foo^2" syntax, but they don't pass yet. Support for chaining these, i.e. "foo^2~3^{u}~1' is starting to shape up.
* First stab at implementation of rev-parse.Ben Straub2012-05-113-0/+271
| | | | | | | | | This version supports refspecs of these kinds: - Full & partial SHAs - Output from "git describe" - "/refs/heads/master" (full ref names) - "master" (partial ref names) - "FETCH_HEAD" (named heads)
* examples: update network examples error handlingCarlos Martín Nieto2012-05-101-2/+5
| | | | Use giterr_last() and make sure it's not NULL.
* clar: Update from upstreamVicent Martí2012-05-091-6/+8
|
* Merge pull request #678 from nulltoken/fix/msvc-weird-errorVicent Martí2012-05-091-104/+104
|\ | | | | Fix MSVC compilation issue
| * Fix MSVC compilation issuenulltoken2012-05-091-104/+104
|/ | | | | | | | exp() is already defined in math.h. This leads to LMSVC complaining ..\..\libgit2\tests-clar\diff\blob.c(5): error C2365: 'exp' : redefinition; previous definition was 'function' Renaming the variable fixes this issue.
* Fix 64-bit build warningRussell Belfer2012-05-091-1/+1
|
* Merge pull request #679 from nulltoken/fix/git__isspaceRussell Belfer2012-05-091-1/+1
|\ | | | | util: Fix git__isspace() implementation
| * util: Fix git__isspace() implementationnulltoken2012-05-091-1/+1
| | | | | | | | | | | | The characters <space>, <form-feed>, <newline>, <carriage-return>, <tab>, and <vertical-tab> are part of the "space" definition. cf. http://www.kernel.org/doc/man-pages/online/pages/man5/locale.5.html
* | tests-clar/diff: fix missing-prototype warningMichael Schubert2012-05-091-2/+2
| |
* | fetch: filter tag annotation pseudo-refs while generating wantsCarlos Martín Nieto2012-05-092-4/+4
| | | | | | | | | | | | | | These objects aren't considered as being advertised, so asking for them will cause the remote end to close the connection. This makes the checking in update_tips() unnecessary, because they don't get inserted in the list.
* | remote: don't try to create tag annotations as refs/tags/v0.1.0^{}Carlos Martín Nieto2012-05-091-0/+4
| | | | | | | | | | Skip them for now. Eventually we might want to filter these out earler.
* | indexer: close the pack's fd before renaming itCarlos Martín Nieto2012-05-091-1/+2
|/ | | | Windows gets upset if we rename a file with an open descriptor.
* msvc: Do not use `isspace` Vicent Martí2012-05-097-18/+33
| | | | Locale-aware bullshit bitting my ass again yo
* Merge pull request #677 from arrbee/status-without-headVicent Martí2012-05-085-3/+98
|\ | | | | Add support for diffing index with no HEAD
| * Add support for diffing index with no HEADRussell Belfer2012-05-085-3/+98
| | | | | | | | | | | | | | When a repo is first created, there is no HEAD yet and attempting to diff files in the index was showing nothing because a tree iterator could not be constructed. This adds an "empty" iterator and falls back on that when the head cannot be looked up.
* | message: CleanupVicent Martí2012-05-081-2/+10
| |
* | message: Proper OOM handlingVicent Martí2012-05-081-3/+2
| |
* | Merge pull request #670 from nulltoken/ntk/topic/clean-commit_messageVicent Martí2012-05-088-7/+272
|\ \ | |/ |/| Clean commit and tag messages
| * commit/tag: ensure the message is cleaned upnulltoken2012-05-078-7/+272
| | | | | | | | | | | | 'git commit' and 'git tag -a' enforce some conventions, like cleaning up excess whitespace and making sure that the last line ends with a '\n'. This fix replicates this behavior. Fix libgit2/libgit2sharp#117
* | Merge pull request #668 from nulltoken/topic/binary-blobsRussell Belfer2012-05-088-51/+264
|\ \ | | | | | | Enhancing the blob diffing experience
| * | diff: improve git_diff_blobs() documentationnulltoken2012-05-071-0/+8
| | |
| * | diff: fix the diffing of two identical blobsnulltoken2012-05-075-9/+50
| | |
| * | diff: make git_diff_blobs() able to detect binary blobsnulltoken2012-05-075-10/+146
| | |