diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-02-25 15:47:36 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-02-25 15:47:36 -0800 |
| commit | 0a01df08c03fe707e22795de7bd1d763ed02e9e1 (patch) | |
| tree | b9ff98081b5cacb5106d303d21378cc5aeb99278 /builtin | |
| parent | Merge branch 'jc/name-rev-stdin' (diff) | |
| parent | date API: add and use a date_mode_release() (diff) | |
| download | git-0a01df08c03fe707e22795de7bd1d763ed02e9e1.tar.gz git-0a01df08c03fe707e22795de7bd1d763ed02e9e1.zip | |
Merge branch 'ab/date-mode-release'
Plug (some) memory leaks around parse_date_format().
* ab/date-mode-release:
date API: add and use a date_mode_release()
date API: add basic API docs
date API: provide and use a DATE_MODE_INIT
date API: create a date.h, split from cache.h
cache.h: remove always unused show_date_human() declaration
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/am.c | 1 | ||||
| -rw-r--r-- | builtin/commit.c | 1 | ||||
| -rw-r--r-- | builtin/fast-import.c | 1 | ||||
| -rw-r--r-- | builtin/show-branch.c | 1 | ||||
| -rw-r--r-- | builtin/tag.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c index c0a3ff7b27..0f4111bafa 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -34,6 +34,7 @@ #include "string-list.h" #include "packfile.h" #include "repository.h" +#include "pretty.h" /** * Returns the length of the first line of msg. diff --git a/builtin/commit.c b/builtin/commit.c index 33ca9e99c8..8b8bdad395 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -37,6 +37,7 @@ #include "help.h" #include "commit-reach.h" #include "commit-graph.h" +#include "pretty.h" static const char * const builtin_commit_usage[] = { N_("git commit [<options>] [--] <pathspec>..."), diff --git a/builtin/fast-import.c b/builtin/fast-import.c index 2b2e28bad7..28f2b9cc91 100644 --- a/builtin/fast-import.c +++ b/builtin/fast-import.c @@ -19,6 +19,7 @@ #include "mem-pool.h" #include "commit-reach.h" #include "khash.h" +#include "date.h" #define PACK_ID_BITS 16 #define MAX_PACK_ID ((1<<PACK_ID_BITS)-1) diff --git a/builtin/show-branch.c b/builtin/show-branch.c index e12c5e80e3..330b0553b9 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -8,6 +8,7 @@ #include "parse-options.h" #include "dir.h" #include "commit-slab.h" +#include "date.h" static const char* show_branch_usage[] = { N_("git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order]\n" diff --git a/builtin/tag.c b/builtin/tag.c index 134b3f1edf..2479da0704 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -20,6 +20,7 @@ #include "oid-array.h" #include "column.h" #include "ref-filter.h" +#include "date.h" static const char * const git_tag_usage[] = { N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]\n" |
