src/revparse.c


Log

Author Commit Date CI Message
Ben Straub 327dc61f 2012-06-07T12:28:08 Prefer git__free (again).
Ben Straub 31dda647 2012-06-07T12:16:39 Rename internal function.
Ben Straub 1a728066 2012-06-06T13:04:08 Remove 'git__' prefix from a static function.
Ben Straub d6391a62 2012-06-06T13:00:12 Rev-parse: stop referencing freed memory. Converted an internal utility to return an oid, rather than a tree entry (whose lifetime is tied to the parent tree, which was freed before returning).
Ben Straub 19d35d52 2012-06-06T12:31:48 Prefer git__free() to free().
Ben Straub 8a385c04 2012-06-06T12:25:22 Move git__date_parse declaration to util.h.
Ben Straub 2c2cde47 2012-06-06T08:41:39 Fix signatures for tree calls.
Ben Straub 734efe4b 2012-06-01T14:18:52 Rev-parse: implement ":/foo" syntax.
Ben Straub b183a92f 2012-05-31T13:42:58 Rev-parse: Plug memory leaks.
Ben Straub 244d2f6b 2012-05-30T16:52:11 Rev-parse: add "tag:README" syntax.
Ben Straub dd9e4abc 2012-05-30T11:46:42 Approxidate: use libgit2 naming/calling conventions. Also use git_time_t (64-bit integer) for time values, although the 2038 problem is still present on 32-bit machines.
Ben Straub 1ce4cc01 2012-05-15T15:41:05 Fix date.c build in msvc. Ported the win32 implementations of gmtime_r, localtime_r, and gettimeofday to be part of the posix compatibility layer, and fixed git_signature_now to use them.
Ben Straub 72b86bae 2012-05-11T11:58:02 Rev-parse: better error handling for chaining. Fixed an error where "nonexistant^N" or similar would fall into an assert. This now properly returns an error.
Ben Straub 94952ded 2012-05-10T15:07:04 Rev-parse: proper error checking.
Ben Straub 7e79d389 2012-05-10T15:05:19 Rev-parse: regex check for "git describe" output.
Ben Straub b41384b4 2012-05-10T14:14:09 Plugging memory leak.
Ben Straub c8a33547 2012-05-10T14:12:30 Rev-parse: now capturing and reporting regex errors.
Ben Straub 2b35c45f 2012-05-10T13:40:53 Rev-parse: now @{-N} syntax searches in the right direction!
Ben Straub 46c2ead0 2012-05-10T13:39:34 Now properly handling branches with "-g" in their names.
Ben Straub ec6a632a 2012-05-10T13:21:58 Simplifying revparse_lookup_fully_qualified_ref.
Ben Straub a346992f 2012-05-10T09:47:14 Rev-parse: @{time} syntax. Ported date.c (for approxidate_careful) from git.git revision aa39b85. Trimmed out the parts we're not using.
Ben Straub 886f183a 2012-05-07T14:26:40 Rev-parse: "ref^{/regex}" syntax.
Ben Straub bae780e0 2012-05-04T10:31:57 Rev-parse: fixing double-freeing. Thanks, Visual Studio!
Ben Straub a6346302 2012-05-03T13:58:46 Rev-parse: "ref@{upstream}" syntax. Added tracking configuration to the test repo's config to support unit tests.
Ben Straub 65bc26d5 2012-05-03T10:29:41 Fixed last 2 memory leaks in rev-parse.
Ben Straub 27ee8483 2012-05-02T14:41:19 Rev-parse: plugging (most) memory leaks.
Ben Straub e88b8bd5 2012-05-01T14:37:11 Incorporating feedback from @tanoku. Removed repeated strlen's, and unnecessary loop-termination variable.
Ben Straub a51bdbcf 2012-04-30T20:21:45 Implementing rev-parse's ref@{n} and @{-n} syntaxes. Added some reflags to the test repo to support unit tests.
Ben Straub 38533d5a 2012-04-27T14:11:12 Implementing rev-parse's "ref~2" syntax. Also extended the test suite to include chaining operators, e.g. "master^2~3^4".
Ben Straub e0887d81 2012-04-27T14:10:03 Removed goto from state machine loop.
Ben Straub 7149a625 2012-04-27T13:53:28 Returning error if dereferencing operation fails.
Ben Straub 387d01b8 2012-04-27T11:47:29 Implemented rev-parse "^{type}" syntax.
Ben Straub 9d7bdf71 2012-04-26T18:15:43 Implemented rev-parse's "^{}" syntax.
Ben Straub f597ea89 2012-04-26T13:06:46 Implemented partial caret syntax for rev-parse. Supported forms: - "^n" - "^0" - "^" Still missing: all of the "^{…}" variants.
Ben Straub 023c6f69 2012-04-25T19:08:17 Simpler states and initial structure. 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.
Ben Straub ac250c56 2012-04-25T16:24:22 First stab at implementation of rev-parse. 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)