nulltoken
80fd31faf7
revparse: Don't return a reference when asked for a git object
...
Fix #1722
2013-07-13 16:07:10 +02:00
nulltoken
f672cd2a09
revparse: Make revparse_ext() return git_reference from names as well
2013-05-16 21:43:31 +02:00
nulltoken
e841c533d7
revparse: Introduce git_revparse_ext()
...
Expose a way to retrieve, along with the target git_object, the reference
pointed at by some revparse expression (`@{<-n>}` or
`<branchname>@{upstream}` syntax).
2013-05-16 21:43:24 +02:00
nulltoken
1fed6b07f0
Fix trailing whitespaces
2013-05-15 22:41:30 +02:00
Vicent Marti
cbda09d00b
git_revision -> git_revspec
2013-04-15 23:40:46 +02:00
Vicent Marti
36c2dfed69
Is this crazy?
2013-04-15 23:32:40 +02:00
Ben Straub
299a224be1
Change git_revparse to output git_object pointers
...
This will probably prevent many lookup/free
operations in calling code.
2013-04-15 12:00:04 -07:00
Ben Straub
2ebc3c66c2
Redeploy git_revparse_single.
2013-04-15 11:57:24 -07:00
Ben Straub
1aa21fe3b8
Deprecate git_revparse_single and _rangelike
2013-04-09 05:07:04 +04:00
Ben Straub
8480eef7ee
Implement unified git_revparse
2013-04-08 16:36:11 +04:00
Vicent Marti
812e5aea59
test: Add missing NULLs
2013-04-07 07:23:08 +02:00
Vicent Marti
d9ecaf8c6f
Merge remote-tracking branch 'gnprice/revwalk' into development
2013-04-07 07:22:38 +02:00
Greg Price
b208d90022
revparse: Parse range-like syntax
...
Signed-off-by: Greg Price <price@mit.edu>
2013-04-06 20:51:16 -07:00
Edward Thomson
d00d54645d
immutable references and a pluggable ref database
2013-03-07 11:01:52 -06:00
nulltoken
0e8e5a6189
revparse: Lookup sha before branch
2013-02-03 11:44:26 +01:00
nulltoken
545b479a07
revparse: Lookup branch before described tag
...
Fix #1306
2013-02-03 11:18:24 +01:00
nulltoken
cc1466264a
revparse: Deploy EINVALIDSPEC usage
2012-12-01 08:34:31 +01:00
nulltoken
84166facc9
revparse: remove timezone setup in tests
2012-12-01 08:34:30 +01:00
Ben Straub
2508cc66eb
Rename ref and reflog apis for consistency
2012-11-27 13:17:45 -08:00
nulltoken
5912d74c69
revparse: properly handle refnames containing a @
...
Fix #994
2012-10-18 23:05:33 +02:00
Ben Straub
c9de8611d6
Revparse: GIT_EAMBIGUOUS
...
Revparse now returns EAMBIGUOUS if the the spec
doesn't match any refs/tags, and is <4 characters.
2012-08-25 09:56:20 -07:00
Carlos Martín Nieto
279b45b05b
revparse: don't allow an empty string
...
Asking the library for "" used to give HEAD, but that's trying to
impose a default at the wrong layer. Make it fail.
2012-07-23 21:32:45 +02:00
nulltoken
d448392e5d
revparse: extend test coverage
2012-07-15 18:41:55 +02:00
nulltoken
d1b7921a48
revparse: fix disambiguation of refs and abbrev oids
2012-07-12 22:30:00 +02:00
nulltoken
bb89cf9478
revparse: simplify handling of the colon syntax
2012-07-12 22:29:58 +02:00
nulltoken
3e82d6c6f0
revparse: unfound reference return ENOTFOUND
2012-07-07 12:16:15 +02:00
nulltoken
ce9e8e11ca
revparse: fix invalid test reference name
2012-07-07 12:16:14 +02:00
nulltoken
b8460c2015
revparse: do not segfault when retrieving the last entry
2012-07-07 12:16:14 +02:00
nulltoken
3d78ab6427
revparse: split reflog test per feature
2012-07-07 12:16:12 +02:00
nulltoken
3cd90893a0
revparse: enhance upstream reflog test coverage
2012-07-07 12:16:11 +02:00
nulltoken
35bed94fd5
revparse: enhance refs/<name> coverage
2012-07-07 12:16:10 +02:00
nulltoken
cab65c2b23
revparse: detect incorrect "refname@{-n}" syntax
2012-07-07 12:16:08 +02:00
nulltoken
1decf88bc1
revparse: slightly improve readability of tests
2012-07-07 12:16:08 +02:00
nulltoken
34922eeeed
revparse: readonly tests don't need a sandboxed repo
2012-07-07 12:16:07 +02:00
nulltoken
494ae940a0
revparse: fix parsing of date specifiers
2012-07-02 19:56:41 +02:00
nulltoken
52b938d55a
revparse: unfound reflog entry returns ENOTFOUND
2012-06-29 17:23:18 +02:00
nulltoken
08ac23a5fd
revparse: unfound reflog ref returns ENOTFOUND
2012-06-29 17:23:10 +02:00
nulltoken
4de89ce72a
revparse: unfound partially-named ref returns ENOTFOUND
2012-06-29 17:22:43 +02:00
nulltoken
0e7af9e758
revparse: unfound nth parent returns ENOTFOUND
2012-06-28 19:12:42 +02:00
nulltoken
0d23c62c48
revparse: handle specs with caret and colon
2012-06-28 19:12:41 +02:00
nulltoken
5b68ba7e15
revparse: unfound treepath returns ENOTFOUND
2012-06-28 19:12:40 +02:00
nulltoken
faaa7c517c
revparse: return trees through the "colon" syntax
2012-06-28 19:12:40 +02:00
nulltoken
e28dd29b6e
revparse: replace spaces with tabs
2012-06-28 19:12:39 +02:00
Ben Straub
eb6bc45f6d
Avoid uninitialized variable error.
2012-06-19 21:11:48 -07:00
Ben Straub
2c90145aad
Fix potential segfault in revparse.
2012-06-19 09:25:55 -07:00
Ben Straub
e272efcb20
Tests: wrap 'getenv' and friends for Win32 tests.
2012-06-08 11:24:37 -07:00
Ben Straub
763b838152
Fixing rev-parse-induced Travis errors.
2012-06-07 13:22:50 -07:00
Ben Straub
734efe4b8e
Rev-parse: implement ":/foo" syntax.
2012-06-01 14:18:52 -07:00
Ben Straub
2497106f91
Rev-parse: add test with deeper path.
2012-06-01 11:41:54 -07:00
Ben Straub
244d2f6b80
Rev-parse: add "tag:README" syntax.
2012-05-30 16:52:11 -07:00