git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git archive without path
@ 2009-11-30 12:32 Dmitry Potapov
  2009-11-30 13:05 ` Michael J Gruber
  2009-12-04 23:11 ` René Scharfe
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Potapov @ 2009-11-30 12:32 UTC (permalink / raw)
  To: git

Hi!

I have never run "git archive" inside of a subdirectory but somehow I
have always assumed that it creates an archive containing all files in
it regardless the current directory. In fact, the git-archive man page
says so:

path
    If one or more paths are specified, include only these in the
    archive, otherwise include all files and subdirectories.


But it turned out that "git archive" works as "git archive .", i.e.
adds files starting with the current directory. Is any rational for
this behavior? It smells to me like a bug rather than a feature. I
cannot imagine wanting to create archive containing just part of the
whole repository just because he happened to be in that directory,
and documentation clearly says that all files should be added unless
one or more paths are specified.


Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-04 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 12:32 git archive without path Dmitry Potapov
2009-11-30 13:05 ` Michael J Gruber
2009-11-30 15:45   ` Dmitry Potapov
2009-11-30 16:35   ` Junio C Hamano
2009-12-04 23:11 ` René Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).