summaryrefslogtreecommitdiff
path: root/src/revparse.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Rev-parse: now capturing and reporting regex errors.Ben Straub2012-05-111-5/+14
|
* 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-111-3/+3
|
* Simplifying revparse_lookup_fully_qualified_ref.Ben Straub2012-05-111-16/+4
|
* Rev-parse: @{time} syntax.Ben Straub2012-05-111-34/+97
| | | | | | 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-111-6/+47
|
* Rev-parse: fixing double-freeing. Thanks, Visual Studio!Ben Straub2012-05-111-1/+1
|
* Rev-parse: "ref@{upstream}" syntax.Ben Straub2012-05-111-1/+23
| | | | | 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-111-21/+24
|
* Incorporating feedback from @tanoku.Ben Straub2012-05-111-8/+9
| | | | Removed repeated strlen's, and unnecessary loop-termination variable.
* Implementing rev-parse's ref@{n} and @{-n} syntaxes.Ben Straub2012-05-111-16/+92
| | | | | Added some reflags to the test repo to support unit tests.
* Implementing rev-parse's "ref~2" syntax.Ben Straub2012-05-111-0/+49
| | | | | 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-111-1/+4
|
* Implemented rev-parse "^{type}" syntax.Ben Straub2012-05-111-14/+14
|
* Implemented rev-parse's "^{}" syntax.Ben Straub2012-05-111-15/+61
|
* Implemented partial caret syntax for rev-parse.Ben Straub2012-05-111-7/+48
| | | | | | | | | Supported forms: - "^n" - "^0" - "^" Still missing: all of the "^{…}" variants.
* Simpler states and initial structure.Ben Straub2012-05-111-27/+123
| | | | | | 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-111-0/+175
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)