summaryrefslogtreecommitdiff
path: root/src/revparse.c
Commit message (Collapse)AuthorAgeFilesLines
* revparse: properly handle refnames containing a @nulltoken2012-10-181-10/+14
| | | | Fix #994
* refs: use constants for well-known namesnulltoken2012-10-071-6/+6
|
* refs: introduce git_reference_is_valid_name()nulltoken2012-09-251-0/+5
|
* Diff iteratorsRussell Belfer2012-09-051-1/+1
| | | | | | | | | | | This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
* Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into developmentVicent Marti2012-08-021-7/+7
|\ | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c
| * portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-7/+7
| |
* | branch: introduce git_branch_tracking()nulltoken2012-07-241-1/+1
|/
* revparse: initialize 'parsed' in case the user doesn't give a number with ↵Carlos Martín Nieto2012-07-231-1/+1
| | | | the @-notation
* revparse: don't allow an empty stringCarlos Martín Nieto2012-07-231-3/+3
| | | | | Asking the library for "" used to give HEAD, but that's trying to impose a default at the wrong layer. Make it fail.
* revparse: deploy git_object_peel()nulltoken2012-07-171-55/+4
|
* revparse: enhance parsing enginenulltoken2012-07-171-469/+620
|
* revparse: fix propagation of errornulltoken2012-07-121-1/+1
|
* revparse: only allow decimal specifiers in carete and tilde synatxnulltoken2012-07-121-2/+2
| | | | | | | | passing 0 to git_strol(32|64) let the implementation guess if it's dealing with an octal number or a decimal one. Let's make it safe and ensure that both 'HEAD@{010}' and 'HEAD@{10}' point at the same commit.
* revparse: fix disambiguation of refs and abbrev oidsnulltoken2012-07-121-7/+7
|
* revparse: simplify handling of the colon syntaxnulltoken2012-07-121-71/+20
|
* revparse: deploy git_reference_remote_tracking_from_branch()nulltoken2012-07-121-26/+6
|
* revparse: deploy git_commit_nth_gen_ancestor()nulltoken2012-07-121-21/+2
|
* revparse: simplify the parsing of described objectnulltoken2012-07-121-14/+12
|
* revparse: unfound reference return ENOTFOUNDnulltoken2012-07-071-24/+50
|
* revparse: do not segfault when retrieving the last entrynulltoken2012-07-071-1/+1
|
* revparse: fix disambiguation of refsnulltoken2012-07-071-84/+98
|
* revparse: unfound previous head return ENOTFOUNDnulltoken2012-07-071-0/+2
|
* revparse: only allow decimal reflog ordinal specsnulltoken2012-07-071-2/+2
| | | | | | | | passing 0 to git_strol(32|64) let the implementation guess if it's dealing with an octal number or a decimal one. Let's make it safe and ensure that both 'HEAD@{010}' and 'HEAD@{10}' point at the same commit.
* revparse: leverage git__isdigit()nulltoken2012-07-071-4/+5
|
* revparse: detect incorrect "refname@{-n}" syntaxnulltoken2012-07-071-16/+13
|
* revparse: fix parsing of date specifiersnulltoken2012-07-021-18/+5
|
* revparse: unfound reflog entry returns ENOTFOUNDnulltoken2012-06-291-1/+1
|
* revparse: unfound reflog ref returns ENOTFOUNDnulltoken2012-06-291-2/+3
|
* revparse: unfound partially-named ref returns ENOTFOUNDnulltoken2012-06-291-1/+1
|
* revparse: unfound nth parent returns ENOTFOUNDnulltoken2012-06-281-1/+1
|
* revparse: handle specs with caret and colonnulltoken2012-06-281-0/+4
|
* revparse: unfound treepath returns ENOTFOUNDnulltoken2012-06-281-3/+25
|
* revparse: return trees through the "colon" syntaxnulltoken2012-06-281-4/+12
|
* revparse: replace spaces with tabsnulltoken2012-06-281-671/+671
|
* Fix indentation.Ben Straub2012-06-191-6/+6
|
* Avoid uninitialized variable error.Ben Straub2012-06-191-2/+2
|
* Plug a few leaksCarlos Martín Nieto2012-06-201-0/+2
|
* revparse: handle a non-existent path in the colon syntaxCarlos Martín Nieto2012-06-191-1/+6
| | | | | | oid_for_tree_path may not always find the path in the tree, in which case we need to return an error. The current code doesn't do this and results in undefined behavior.
* Fix potential segfault in revparse.Ben Straub2012-06-191-1/+6
|
* clar: Fix warningsVicent Marti2012-06-191-1/+1
|
* revparse: remove unnecessary GIT_BEGIN_DECLMichael Schubert2012-06-121-5/+0
|
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-1/+1
|
* Fixing rev-parse-induced Travis errors.Ben Straub2012-06-071-0/+5
|
* Prefer git__free (again).Ben Straub2012-06-071-1/+1
|
* Rename internal function.Ben Straub2012-06-071-2/+2
|
* Remove 'git__' prefix from a static function.Ben Straub2012-06-061-2/+2
|
* Rev-parse: stop referencing freed memory.Ben Straub2012-06-061-6/+7
| | | | | | 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).
* Prefer git__free() to free().Ben Straub2012-06-061-1/+1
|
* Move git__date_parse declaration to util.h.Ben Straub2012-06-061-1/+0
|
* Fix signatures for tree calls.Ben Straub2012-06-061-4/+4
|