git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git archive without path

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 30, 2009, 16:35 UTC
Message-ID
<7vljhootqq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B13C2FE.3040707@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 7 quoted lines
> Depends on the definition of "all" :)
>
> In fact: Two mighty powers are fighting right now for the primacy in the
> Land of the Git, and both carry the name "consistency" on their flags.
> One is the "order of the consistency of generations", also named
> "backwards compatibility", and one is the "order of the consistency of
> commands", also named "user experience".

You need to throw in another "work similarly to the counterpart outside git world" and you will have a better picture. This third consistency often sides with the first one.

In the case of "git archive" (and "git grep" in the other thread), it works like you run "tar" (and "grep -r", for "git grep") both because the original implementor wanted a version of "tar" ("grep") that works inside git world, and early adopters and users found the third consistency easy to work with, and that is why the third consistency grew into the first one.

Previous: Dmitry PotapovNext: René Scharfe
Message 4 of 5 in “git archive without path”
  1. Dmitry PotapovNov 30, 2009
  2. Michael J GruberNov 30, 2009
  3. Dmitry PotapovNov 30, 2009
  4. Junio C HamanoNov 30, 2009
  5. René ScharfeDec 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.