Skip to content

Commit 627b37c

Browse files
committed
Merge branch 'dl/libify-a-few' into pu
Code in builtin/*, i.e. those can only be called from within built-in subcommands, that implements bulk of a couple of subcommands have been moved to libgit.a so that they could be used by others. * dl/libify-a-few: Lib-ify prune-packed Lib-ify fmt-merge-msg
2 parents 61846ea + 9460fd4 commit 627b37c

File tree

10 files changed

+727
-716
lines changed

10 files changed

+727
-716
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ LIB_OBJS += ewah/ewah_rlw.o
890890
LIB_OBJS += exec-cmd.o
891891
LIB_OBJS += fetch-negotiator.o
892892
LIB_OBJS += fetch-pack.o
893+
LIB_OBJS += fmt-merge-msg.o
893894
LIB_OBJS += fsck.o
894895
LIB_OBJS += fsmonitor.o
895896
LIB_OBJS += gettext.o
@@ -955,6 +956,7 @@ LIB_OBJS += progress.o
955956
LIB_OBJS += promisor-remote.o
956957
LIB_OBJS += prompt.o
957958
LIB_OBJS += protocol.o
959+
LIB_OBJS += prune-packed.o
958960
LIB_OBJS += quote.o
959961
LIB_OBJS += range-diff.o
960962
LIB_OBJS += reachable.o

builtin.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,9 @@
9494
* command.
9595
*/
9696

97-
#define DEFAULT_MERGE_LOG_LEN 20
98-
9997
extern const char git_usage_string[];
10098
extern const char git_more_info_string[];
10199

102-
#define PRUNE_PACKED_DRY_RUN 01
103-
#define PRUNE_PACKED_VERBOSE 02
104-
105-
void prune_packed_objects(int);
106-
107-
struct fmt_merge_msg_opts {
108-
unsigned add_title:1,
109-
credit_people:1;
110-
int shortlog_len;
111-
};
112-
113-
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
114-
struct fmt_merge_msg_opts *);
115-
116100
/**
117101
* If a built-in has DELAY_PAGER_CONFIG set, the built-in should call this early
118102
* when it wishes to respect the `pager.foo`-config. The `cmd` is the name of

0 commit comments

Comments
 (0)