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

Re: git-archive --worktree-attributes (1.8.2)

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 9, 2013, 21:12 UTC
Message-ID
<7vk3obpfwc.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAFGOX=VXifkn4oNkqLLF_WG5Dzf4rjd15EV7C=9a_H9CTM+w2Q@mail.gmail.com>
Amit Bakshi <ambakshi@gmail.com> writes:
Show 7 quoted lines
> Hi,
>
>  In the help for git-archive it states:
>
>        --worktree-attributes
>            Look for attributes in .gitattributes in working directory too.
> ...

The worktree-attributes should read from the worktree. It should not pay any attention to where you are in the directory hierarchy, i.e. your current working directory (aka $cwd).

> Would you accept a patch that either adds an option to explicitly set
> the .gitattributes file or would let --worktree-attributes look in
> $PWD.

The former, possibly, if accompanied with a good justification and implemented cleanly.

The latter, definitely not.
Previous: Amit BakshiNext: René Scharfe
Message 2 of 5 in “git-archive --worktree-attributes (1.8.2)”
  1. Amit BakshiApr 9, 2013
  2. Junio C HamanoApr 9, 2013
  3. archive: clarify explanation of --worktree-attributesRené Scharfe, Apr 10, 2013
  4. Eric SunshineApr 10, 2013
  5. Junio C HamanoApr 10, 2013

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.