summaryrefslogtreecommitdiff
path: root/builtin/revert.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-11 22:29:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-09-11 22:29:21 (GMT)
commitfb3198c57f4dfa462e29844d47fa9eececc3bb8f (patch)
treedee7a7286f6b8a25c9b81676272b2e4c22d5edcf /builtin/revert.c
parentcf3e2486d698356a130ebcda9d728c53a0569813 (diff)
downloadgit-fb3198c57f4dfa462e29844d47fa9eececc3bb8f.zip
git-fb3198c57f4dfa462e29844d47fa9eececc3bb8f.tar.gz
git-fb3198c57f4dfa462e29844d47fa9eececc3bb8f.tar.bz2
builtin/revert.c: make commit_list_append() static
There is nobody outside that calls into this helper function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/revert.c')
-rw-r--r--builtin/revert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/revert.c b/builtin/revert.c
index 8b452e8..8409f4c 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -664,8 +664,8 @@ static void read_and_refresh_cache(struct replay_opts *opts)
* assert(commit_list_count(list) == 2);
* return list;
*/
-struct commit_list **commit_list_append(struct commit *commit,
- struct commit_list **next)
+static struct commit_list **commit_list_append(struct commit *commit,
+ struct commit_list **next)
{
struct commit_list *new = xmalloc(sizeof(struct commit_list));
new->item = commit;