Skip to content

Commit 4e12082

Browse files
newrengitster
authored andcommitted
editor: move editor-related functions and declarations into common file
cache.h and strbuf.[ch] had editor-related functions. Move these into editor.[ch]. Signed-off-by: Elijah Newren <[email protected]> Acked-by: Calvin Wan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d812c3b commit 4e12082

21 files changed

+80
-55
lines changed

add-patch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "add-interactive.h"
33
#include "advice.h"
44
#include "alloc.h"
5+
#include "editor.h"
56
#include "environment.h"
67
#include "gettext.h"
78
#include "object-name.h"

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "config.h"
1010
#include "builtin.h"
1111
#include "lockfile.h"
12+
#include "editor.h"
1213
#include "dir.h"
1314
#include "gettext.h"
1415
#include "pathspec.h"

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "advice.h"
1010
#include "config.h"
1111
#include "builtin.h"
12+
#include "editor.h"
1213
#include "environment.h"
1314
#include "exec-cmd.h"
1415
#include "gettext.h"

builtin/branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "cache.h"
99
#include "config.h"
1010
#include "color.h"
11+
#include "editor.h"
1112
#include "environment.h"
1213
#include "refs.h"
1314
#include "commit.h"

builtin/bugreport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "builtin.h"
22
#include "abspath.h"
3+
#include "editor.h"
34
#include "gettext.h"
45
#include "parse-options.h"
56
#include "strbuf.h"

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "cache-tree.h"
1414
#include "color.h"
1515
#include "dir.h"
16+
#include "editor.h"
1617
#include "environment.h"
1718
#include "builtin.h"
1819
#include "diff.h"

builtin/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "alloc.h"
44
#include "config.h"
55
#include "color.h"
6+
#include "editor.h"
67
#include "environment.h"
78
#include "gettext.h"
89
#include "ident.h"

builtin/merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "advice.h"
1313
#include "alloc.h"
1414
#include "config.h"
15+
#include "editor.h"
1516
#include "environment.h"
1617
#include "gettext.h"
1718
#include "hex.h"

builtin/notes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "cache.h"
1111
#include "config.h"
1212
#include "builtin.h"
13+
#include "editor.h"
1314
#include "gettext.h"
1415
#include "hex.h"
1516
#include "notes.h"

builtin/replace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "cache.h"
1212
#include "config.h"
1313
#include "builtin.h"
14+
#include "editor.h"
1415
#include "environment.h"
1516
#include "gettext.h"
1617
#include "hex.h"

0 commit comments

Comments
 (0)