Skip to content

Commit

Permalink
rerere: Separate libgit and builtin functions
Browse files Browse the repository at this point in the history
This patch moves rerere()-related functions into a newly created
rerere.c file.
The setup_rerere() function is needed by both rerere() and cmd_rerere(),
so this function is moved to rerere.c and declared non-static (and "extern")
in newly created rerere.h file.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
sbeyer authored and gitster committed Jul 10, 2008
1 parent 99d698f commit 5b2fd95
Show file tree
Hide file tree
Showing 6 changed files with 390 additions and 355 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -363,6 +363,7 @@ LIB_H += quote.h
LIB_H += reflog-walk.h
LIB_H += refs.h
LIB_H += remote.h
LIB_H += rerere.h
LIB_H += revision.h
LIB_H += run-command.h
LIB_H += sha1-lookup.h
Expand Down Expand Up @@ -447,6 +448,7 @@ LIB_OBJS += read-cache.o
LIB_OBJS += reflog-walk.o
LIB_OBJS += refs.o
LIB_OBJS += remote.o
LIB_OBJS += rerere.o
LIB_OBJS += revision.o
LIB_OBJS += run-command.o
LIB_OBJS += server-info.o
Expand Down
1 change: 1 addition & 0 deletions builtin-commit.c
Expand Up @@ -22,6 +22,7 @@
#include "utf8.h"
#include "parse-options.h"
#include "path-list.h"
#include "rerere.h"
#include "unpack-trees.h"

static const char * const builtin_commit_usage[] = {
Expand Down

0 comments on commit 5b2fd95

Please sign in to comment.