archive: convert to use parse_pathspec

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:
Nguyễn Thái Ngọc Duy
2013-07-14 15:35:44 +07:00
committed by Junio C Hamano
parent 9e06d6ed76
commit f3e743a0d9
2 changed files with 14 additions and 9 deletions

View File

@ -1,6 +1,8 @@
#ifndef ARCHIVE_H
#define ARCHIVE_H
#include "pathspec.h"
struct archiver_args {
const char *base;
size_t baselen;
@ -8,7 +10,7 @@ struct archiver_args {
const unsigned char *commit_sha1;
const struct commit *commit;
time_t time;
const char **pathspec;
struct pathspec pathspec;
unsigned int verbose : 1;
unsigned int worktree_attributes : 1;
unsigned int convert : 1;