]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/describe/describe_helpers.c
describe: split into gather and format steps
authorCarlos Martín Nieto <cmn@dwim.me>
Tue, 30 Sep 2014 05:19:14 +0000 (07:19 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Tue, 30 Sep 2014 05:24:28 +0000 (07:24 +0200)
commit3b6534b80768e8751b398cd3aeffb888e374c8d4
treec373d53f835a8f868477cd03721a674123ec1b89
parent1f501a086b4a9103f5ef5540c82c57d8559f0aff
describe: split into gather and format steps

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.
include/git2/describe.h
src/describe.c
tests/describe/describe.c
tests/describe/describe_helpers.c
tests/describe/describe_helpers.h
tests/describe/t6120.c