2018-10-18 06:13:26 +08:00
|
|
|
#ifndef ALIAS_H
|
|
|
|
#define ALIAS_H
|
2018-05-21 02:40:06 +08:00
|
|
|
|
2023-04-10 17:08:30 +08:00
|
|
|
struct strbuf;
|
2018-05-21 02:40:08 +08:00
|
|
|
struct string_list;
|
|
|
|
|
2018-05-21 02:40:06 +08:00
|
|
|
char *alias_lookup(const char *alias);
|
2023-04-10 17:08:30 +08:00
|
|
|
/* Quote argv so buf can be parsed by split_cmdline() */
|
|
|
|
void quote_cmdline(struct strbuf *buf, const char **argv);
|
2018-05-21 02:40:06 +08:00
|
|
|
int split_cmdline(char *cmdline, const char ***argv);
|
|
|
|
/* Takes a negative value returned by split_cmdline */
|
|
|
|
const char *split_cmdline_strerror(int cmdline_errno);
|
2018-05-21 02:40:08 +08:00
|
|
|
void list_aliases(struct string_list *list);
|
2018-05-21 02:40:06 +08:00
|
|
|
|
|
|
|
#endif
|