Revision a59b9c9c6bcce0650d550eaa23aa0fb1842ec200 authored by Shourya Shukla on 15 January 2020, 12:20:16 UTC, committed by Shourya Shukla on 15 January 2020, 12:20:16 UTC
Take advantage of helper function test_path_is_file() to
replace test -f since the functions enhance readability
of code and provide better error messages. Replaced | with >
and removed the redundant occurance of -t and blob in
git hash-object because the type(-t) is set as blob by default

Signed-off by: Shourya Shukla <shouryashukla.oo@gmail.com>
1 parent 34a0e43
Raw File
alias.h
#ifndef ALIAS_H
#define ALIAS_H

struct string_list;

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);
void list_aliases(struct string_list *list);

#endif
back to top