summaryrefslogtreecommitdiff
path: root/src/revparse.c
Commit message (Collapse)AuthorAgeFilesLines
* revparse: do look at all refs when matching textCarlos Martín Nieto2014-02-051-2/+1
| | | | | Now that we no longer fail to push non-commits on a glob, let's search on all refs when we rev-parse syntax asks us to match text.
* git_reflog_entry_message can be nullLinquize2014-01-201-0/+2
|
* reflog: move the reflog implementation into refdb_fsCarlos Martín Nieto2013-10-021-2/+2
| | | | | | | | | | References and their logs are logically coupled, let's make it so in the code by moving the fs-based reflog implementation to live next to the fs-based refs one. As part of the change, make the function take names rather than references, as only the names are relevant when looking up and handling reflogs.
* errors: Fix format of some error messagesnulltoken2013-09-111-1/+1
|
* revparse: Simplify error handlingnulltoken2013-09-071-11/+3
|
* revparse: Prevent unnecessary odb backend callsnulltoken2013-09-071-6/+3
|
* Revparse does not handle refspecsCarlos Martín Nieto2013-08-191-1/+1
|
* revparse: Use more idiomatic error value testEvan Hanson2013-08-151-1/+1
|
* revparse: Free left side of invalid range revspecsEvan Hanson2013-08-151-7/+3
| | | | | | This fixes a small memory leak in git_revparse where early returns on errors from git_revparse_single cause a free() on the (reallocated) left side of the revspec to be skipped.
* revparse: Don't return a reference when asked for a git objectnulltoken2013-07-131-0/+13
| | | | Fix #1722
* Fix Windows warningsRussell Belfer2013-06-121-2/+4
| | | | | This fixes problems with missing function prototypes and 64-bit data issues on Windows.
* revparse: Make revparse_ext() return git_reference from names as wellnulltoken2013-05-161-14/+23
|
* revparse: Introduce git_revparse_ext()nulltoken2013-05-161-5/+60
| | | | | | Expose a way to retrieve, along with the target git_object, the reference pointed at by some revparse expression (`@{<-n>}` or `<branchname>@{upstream}` syntax).
* revparse: Simplify temporary reference freeingnulltoken2013-05-161-13/+7
|
* Fix trailing whitespacesnulltoken2013-05-151-1/+0
|
* Expose git_reference_dwimCarlos Martín Nieto2013-05-071-65/+4
| | | | | Extract this function out of the rev-parse code to be able to DWIM a reference instead of its target.
* Fix one error not reported in revparseRussell Belfer2013-05-011-1/+8
| | | | | | | There are many paths through revparse that may return an error code without reporting an error, I believe. This fixes one of them. Because of the backtracking in revparse, it is pretty complicated to fix the others.
* Fix uninitialized var warningsRussell Belfer2013-04-181-1/+1
|
* git_revision -> git_revspecVicent Marti2013-04-151-9/+9
|
* Is this crazy?Vicent Marti2013-04-151-18/+14
|
* Merge remote-tracking branch 'ben/unified-revparse' into developmentVicent Marti2013-04-151-22/+44
|\
| * Change git_revparse to output git_object pointersBen Straub2013-04-151-13/+8
| | | | | | | | This will probably prevent many lookup/free operations in calling code.
| * Reintroduce git_revparse_single.Ben Straub2013-04-151-1/+1
| |
| * Deprecate git_revparse_single and _rangelikeBen Straub2013-04-091-26/+1
| |
| * Implement unified git_revparseBen Straub2013-04-081-6/+58
| |
* | Merge pull request #1450 from carlosmn/branch-upstreamVicent Martí2013-04-111-1/+1
|\ \ | | | | | | Branch upstream configuration
| * | branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-301-1/+1
| | | | | | | | | | | | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* | | object: Export git_object_dupVicent Marti2013-04-101-1/+1
| |/ |/|
* | Merge remote-tracking branch 'gnprice/revwalk' into developmentVicent Marti2013-04-071-0/+25
|\ \ | |/ |/|
| * revparse: Parse range-like syntaxGreg Price2013-04-061-0/+25
| | | | | | | | Signed-off-by: Greg Price <price@mit.edu>
* | Several warnings detected by static code analyzer fixedArkadiy Shapkin2013-03-181-3/+3
| | | | | | | | | | | | | | Implicit type conversion argument of function to size_t type Suspicious sequence of types castings: size_t -> int -> size_t Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)' Unsigned type is never < 0
* | immutable references and a pluggable ref databaseEdward Thomson2013-03-071-1/+2
|/
* revparse: Lookup sha before branchnulltoken2013-02-031-6/+29
|
* revparse: Lookup branch before described tagnulltoken2013-02-031-7/+7
| | | | Fix #1306
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* revparse: Deploy EINVALIDSPEC usagenulltoken2012-12-011-39/+46
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-20/+19
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-6/+6
|
* Fix a couple of warningsMichael Schubert2012-11-181-1/+1
|
* reflog: make entry_byindex() and drop() git compliantnulltoken2012-11-171-3/+3
| | | | | Passing 0 as the index now retrieves the most recent entry instead of the oldest one.
* 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
|