Subject: [PATCH 0/8] support "in-tree attributes" for git-archive

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Wed, 8 Apr 2009 20:05:25 +1000

This series attempts to fix "git archive" sometimes looking into
.gitattributes in working directory and may cause undesired effects.

Nguyá»…n ThÃ¡i Ngá»c Duy (8):
  archive: add shortcuts for --format and --prefix

This one is unrelated. Just a convenient patch.

  move prune_cache() to git lib
  archive: add a failure test wrt .gitattributes  misreading
  archive: add tests for directory selection
  attr: add GIT_ATTR_INDEX "direction"
  archive: use index instead of parsing tree directly
  archive: disregard .gitattributes on working directory

Main part, which converts archive.c to load index first, then export from there.

  archive: support creating archives from index

Well, show off patch ;-)

 Documentation/git-archive.txt |    4 +-
 archive.c                     |  106 +++++++++++++++++++++++++++++++----------
 archive.h                     |    1 +
 attr.c                        |    4 +-
 attr.h                        |    3 +-
 builtin-ls-files.c            |   29 +-----------
 cache.h                       |    2 +
 read-cache.c                  |   27 ++++++++++
 t/t0024-crlf-archive.sh       |   35 +++++++++++++-
 t/t5000-tar-tree.sh           |    6 ++-
 10 files changed, 158 insertions(+), 59 deletions(-)