summaryrefslogtreecommitdiff
path: root/src/describe.c
Commit message (Collapse)AuthorAgeFilesLines
* describe: only abort without tags if fallback is not allowed.Patrick Steinhardt2015-04-071-1/+1
| | | | | | When no reference names could be found we did error out when trying to describe a commit. This is wrong, though, when the option to fall back to a commit's object ID is set.
* Reorder some khash declarationsCarlos Martín Nieto2015-03-111-0/+2
| | | | | | Keep the definitions in the headers, while putting the declarations in the C files. Putting the function definitions in headers causes them to be duplicated if you include two headers with them.
* Plug some leaksJacques Germishuys2014-12-291-2/+6
|
* describe: check error codesEdward Thomson2014-11-291-2/+2
|
* Fixed potential crash with uninitialized variablesPierre-Olivier Latour2014-10-271-1/+1
|
* Removed some useless variable assignmentsPierre-Olivier Latour2014-10-271-2/+0
|
* Clean up various compiler warningsEdward Thomson2014-10-261-2/+3
|
* Merge pull request #2609 from linquize/describe-optsEdward Thomson2014-10-131-15/+31
|\ | | | | Handle describe options better
| * describe: Initialize options for git_describe_format() if nullLinquize2014-10-111-14/+30
| |
| * describe: Do not crash if pass null option to git_describe_commit()Linquize2014-10-111-1/+1
| |
* | Don't use cl_git_pass for POSIX functionsrb/minor-cleanupsRussell Belfer2014-10-101-1/+1
|/ | | | | | | If there is a failure then cl_git_pass tries to get the libgit2 error, but p_... functions don't set that. Also - trailing whitespace cleanup.
* describe: make mingw happyCarlos Martín Nieto2014-09-301-2/+2
| | | | The MinGW compiler does not like it when we declare a typedef twice.
* describe: rename git_describe_opts to git_describe_optionsCarlos Martín Nieto2014-09-301-14/+24
| | | | And implement the option init functions for this and the format options.
* describe: implement abbreviated idsCarlos Martín Nieto2014-09-301-6/+27
|
* describe: implement describing the workdirCarlos Martín Nieto2014-09-301-6/+49
| | | | | | When we describe the workdir, we perform a describe on HEAD and then check to see if the worktree is dirty. If it is and we have a suffix string, we append that to the buffer.
* describe: split into gather and format stepsCarlos Martín Nieto2014-09-301-66/+173
| | | | | | | | Instead of printing out to the buffer inside the information-gathering phase, write the data to a intermediate result structure. This allows us to split the options into gathering options and formatting options, simplifying the gathering code.
* describe: rename _object() to _commit()Carlos Martín Nieto2014-09-301-1/+1
| | | | | We don't describe arbitrary object, so let's give it the name of the one object type we accept.
* object: introduce git_describe_object()nulltoken2014-04-301-0/+690