summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2008-07-25 10:41:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-26 00:18:06 (GMT)
commitc0885435537e4b93709d2bf39ce36454186057a1 (patch)
tree7e8dbc44200a562b31baad57d7a55f09d52c35f1 /archive.h
parent6e94e6835f397cd2602ca1eb12002e51aa6b0500 (diff)
downloadgit-c0885435537e4b93709d2bf39ce36454186057a1.zip
git-c0885435537e4b93709d2bf39ce36454186057a1.tar.gz
git-c0885435537e4b93709d2bf39ce36454186057a1.tar.bz2
archive: move parameter parsing code to archive.c
write_archive() in archive.c is the only callsite for the command line parsing functions located in builtin-archive.c. Move them to the place where they are used, un-export them and make them static, as hinted at by Stephan. Cc: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/archive.h b/archive.h
index 6b5fe5a..f6ceaeb 100644
--- a/archive.h
+++ b/archive.h
@@ -26,14 +26,6 @@ struct archiver {
unsigned int flags;
};
-extern int parse_archive_args(int argc, const char **argv, const struct archiver **ar, struct archiver_args *args);
-
-extern void parse_treeish_arg(const char **treeish,
- struct archiver_args *ar_args,
- const char *prefix);
-
-extern void parse_pathspec_arg(const char **pathspec,
- struct archiver_args *args);
/*
* Archive-format specific backends.
*/