Move declaration for alias.c to alias.h
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d9fcc7f871
commit
65b5f9483e
1
alias.c
1
alias.c
@ -1,4 +1,5 @@
|
|||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
|
#include "alias.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
struct config_alias_data {
|
struct config_alias_data {
|
||||||
|
9
alias.h
Normal file
9
alias.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#ifndef __ALIAS_H__
|
||||||
|
#define __ALIAS_H__
|
||||||
|
|
||||||
|
char *alias_lookup(const char *alias);
|
||||||
|
int split_cmdline(char *cmdline, const char ***argv);
|
||||||
|
/* Takes a negative value returned by split_cmdline */
|
||||||
|
const char *split_cmdline_strerror(int cmdline_errno);
|
||||||
|
|
||||||
|
#endif
|
@ -9,6 +9,7 @@
|
|||||||
#include "run-command.h"
|
#include "run-command.h"
|
||||||
#include "column.h"
|
#include "column.h"
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#ifndef DEFAULT_HELP_FORMAT
|
#ifndef DEFAULT_HELP_FORMAT
|
||||||
#define DEFAULT_HELP_FORMAT "man"
|
#define DEFAULT_HELP_FORMAT "man"
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include "string-list.h"
|
#include "string-list.h"
|
||||||
#include "packfile.h"
|
#include "packfile.h"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#define DEFAULT_TWOHEAD (1<<0)
|
#define DEFAULT_TWOHEAD (1<<0)
|
||||||
#define DEFAULT_OCTOPUS (1<<1)
|
#define DEFAULT_OCTOPUS (1<<1)
|
||||||
|
5
cache.h
5
cache.h
@ -1835,11 +1835,6 @@ extern int ws_blank_line(const char *line, int len, unsigned ws_rule);
|
|||||||
void overlay_tree_on_index(struct index_state *istate,
|
void overlay_tree_on_index(struct index_state *istate,
|
||||||
const char *tree_name, const char *prefix);
|
const char *tree_name, const char *prefix);
|
||||||
|
|
||||||
char *alias_lookup(const char *alias);
|
|
||||||
int split_cmdline(char *cmdline, const char ***argv);
|
|
||||||
/* Takes a negative value returned by split_cmdline */
|
|
||||||
const char *split_cmdline_strerror(int cmdline_errno);
|
|
||||||
|
|
||||||
/* setup.c */
|
/* setup.c */
|
||||||
struct startup_info {
|
struct startup_info {
|
||||||
int have_repository;
|
int have_repository;
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include "transport.h"
|
#include "transport.h"
|
||||||
#include "strbuf.h"
|
#include "strbuf.h"
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
static char *server_capabilities;
|
static char *server_capabilities;
|
||||||
static const char *parse_feature_value(const char *, const char *, int *);
|
static const char *parse_feature_value(const char *, const char *, int *);
|
||||||
|
1
git.c
1
git.c
@ -3,6 +3,7 @@
|
|||||||
#include "exec_cmd.h"
|
#include "exec_cmd.h"
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
#include "run-command.h"
|
#include "run-command.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#define RUN_SETUP (1<<0)
|
#define RUN_SETUP (1<<0)
|
||||||
#define RUN_SETUP_GENTLY (1<<1)
|
#define RUN_SETUP_GENTLY (1<<1)
|
||||||
|
1
pager.c
1
pager.c
@ -2,6 +2,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "run-command.h"
|
#include "run-command.h"
|
||||||
#include "sigchain.h"
|
#include "sigchain.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#ifndef DEFAULT_PAGER
|
#ifndef DEFAULT_PAGER
|
||||||
#define DEFAULT_PAGER "less"
|
#define DEFAULT_PAGER "less"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
#include "notes-utils.h"
|
#include "notes-utils.h"
|
||||||
#include "sigchain.h"
|
#include "sigchain.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION"
|
#define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION"
|
||||||
|
|
||||||
|
1
shell.c
1
shell.c
@ -3,6 +3,7 @@
|
|||||||
#include "exec_cmd.h"
|
#include "exec_cmd.h"
|
||||||
#include "strbuf.h"
|
#include "strbuf.h"
|
||||||
#include "run-command.h"
|
#include "run-command.h"
|
||||||
|
#include "alias.h"
|
||||||
|
|
||||||
#define COMMAND_DIR "git-shell-commands"
|
#define COMMAND_DIR "git-shell-commands"
|
||||||
#define HELP_COMMAND COMMAND_DIR "/help"
|
#define HELP_COMMAND COMMAND_DIR "/help"
|
||||||
|
Loading…
Reference in New Issue
Block a user