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 <newren@gmail.com> Acked-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
d812c3b6a0
commit
4e120823a3
3
cache.h
3
cache.h
@ -621,10 +621,7 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
|
||||
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
|
||||
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
|
||||
|
||||
const char *git_editor(void);
|
||||
const char *git_sequence_editor(void);
|
||||
const char *git_pager(int stdout_is_tty);
|
||||
int is_terminal_dumb(void);
|
||||
|
||||
struct cache_def {
|
||||
struct strbuf path;
|
||||
|
Reference in New Issue
Block a user