summaryrefslogtreecommitdiff
path: root/tests/describe
Commit message (Collapse)AuthorAgeFilesLines
* describe: only abort without tags if fallback is not allowed.Patrick Steinhardt2015-04-071-1/+6
| | | | | | 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.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-1/+1
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* Don't use cl_git_pass for POSIX functionsrb/minor-cleanupsRussell Belfer2014-10-101-2/+2
| | | | | | | 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: rename git_describe_opts to git_describe_optionsCarlos Martín Nieto2014-09-304-13/+13
| | | | And implement the option init functions for this and the format options.
* describe: use globs in the testsCarlos Martín Nieto2014-09-304-49/+34
| | | | | This makes us be closer to git's tests, and lets us better describe what we expect from the output.
* describe: implement describing the workdirCarlos Martín Nieto2014-09-303-0/+48
| | | | | | 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-304-31/+46
| | | | | | | | 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-302-2/+2
| | | | | 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-304-0/+215