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

Re: [PATCH 1/5] attr.c: add push_stack() helper

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 9, 2016, 00:15 UTC
Message-ID
<xmqqlh2fjjzg.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79ka+BXOAMr7JxJXmhsmXTwTcdidJ72=9mbCkHiycj-t6AQ@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:

All of your questions is about !origin vs !*origin. This applies to the code in 'master', not specific to jc/attr topic's improvements. It is how the prepare_attr_stack() tells where the .gitattributes for the top-level directory is when popping the elements for other directory hierarchy we have left (origin && !*origin is the root level). !origin denotes entries that did not come from in-tree files (i.e. $GIT_DIR/info/attributes, built-in ones, etc.).

Previous: Stefan BellerNext: Junio C Hamano
Message 4 of 13 in “A bit more "attributes"”
  1. 0/5 A bit more "attributes"Junio C Hamano, Jun 8, 2016
  2. 1/5 attr.c: add push_stack() helperJunio C Hamano, Jun 8, 2016
  3. Stefan BellerJun 8, 2016
  4. Junio C HamanoJun 9, 2016
  5. 2/5 attr.c: pass struct git_attr_check down the callchainJunio C Hamano, Jun 8, 2016
  6. Stefan BellerJun 8, 2016
  7. 3/5 fixup! d5ad6c13Junio C Hamano, Jun 8, 2016
  8. Stefan BellerJun 9, 2016
  9. Junio C HamanoJun 9, 2016
  10. 4/5 attr.c: correct ugly hack for git_all_attrs()Junio C Hamano, Jun 8, 2016
  11. 5/5 attr.c: always pass check[] to collect_some_attrs()Junio C Hamano, Jun 8, 2016
  12. Stefan BellerJun 9, 2016
  13. Junio C HamanoJun 9, 2016

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.