diff options
author | Stefan Beller <sbeller@google.com> | 2017-11-15 18:00:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-16 11:12:51 +0900 |
commit | 4dbc59a4cce418ff8428a9d2ecd67c34ca50db56 (patch) | |
tree | 5e8c2f450d9c8c705838cb47d33753c832bf3db8 /LGPL-2.1 | |
parent | cdaed0cf023a47cae327671fae11c10d88100ee7 (diff) | |
download | git-4dbc59a4cce418ff8428a9d2ecd67c34ca50db56.tar.gz git-4dbc59a4cce418ff8428a9d2ecd67c34ca50db56.tar.xz |
builtin/describe.c: factor out describe_commit
Factor out describing commits into its own function `describe_commit`,
which will put any output to stdout into a strbuf, to be printed
afterwards.
As the next patch will teach Git to describe blobs using a commit and path,
this refactor will make it easy to reuse the code describing commits.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'LGPL-2.1')
0 files changed, 0 insertions, 0 deletions