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

Re: [PATCH 0/9] i18n: add PO files to po/

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 3, 2011, 22:53 UTC
Message-ID
<CACsJy8C1-YaON868Vtn0=o8U0hL=OChVOKydz6A1SmjpSkgUUw@mail.gmail.com>
In-Reply-To
<20111003220659.GA19537@elie>
On Tue, Oct 4, 2011 at 9:06 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 7 quoted lines
> 3. Maybe some hero will implement
>
>        git log -p --exclude=po/
>        # or
>        git log -p -- :(not)po/
>
> to complement "git log -p -- po/". ;-)

I was pursuing the latter, but think again, maybe reuse exclude code to implement --exclude would be wiser.

One of my motives for negative pathspec is to narrow/extend a narrow clone. Narrow clone itself should reuse sparse checkout for worktree part, and sparse checkout uses exclude code already. If I go with negative pathspec for narrow clone, I would need to invent another negative-path-based sparse checkout.. That does not make much sense.

I believe a couple of lines in process_trees() in list-objects.c and adding struct exclude_list* to struct rev_info would be enough for --exclude, if you want to try.

-- 
Duy
Previous: Jonathan NiederNext: Ævar Arnfjörð Bjarmason
Message 11 of 19 in “i18n: add PO files to po/”
  1. 0/9 i18n: add PO files to po/Ævar Arnfjörð Bjarmason, Oct 3, 2011
  2. 1/9 po/is.po: add Icelandic translationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  3. 3/9 po/de.po: update German translationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  4. 4/9 po/en_GB.po: add British English translationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  5. 5/9 po/pl.po: add Polish translationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  6. 6/9 po/sv.po: add Swedish translationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  7. 7/9 po/hi.po: add Hindi TranslationÆvar Arnfjörð Bjarmason, Oct 3, 2011
  8. Ramkumar RamachandraOct 4, 2011
  9. 8/9 po/hi.po: Eliminate fuzzy translationsÆvar Arnfjörð Bjarmason, Oct 3, 2011
  10. Jonathan NiederOct 3, 2011
  11. Nguyen Thai Ngoc DuyOct 3, 2011
  12. Ævar Arnfjörð BjarmasonOct 4, 2011
  13. Junio C HamanoOct 4, 2011
  14. Jonathan NiederOct 5, 2011
  15. Ramkumar RamachandraOct 5, 2011
  16. Peter KreftingOct 6, 2011
  17. Peter KreftingOct 11, 2011
  18. Peter KreftingOct 5, 2011
  19. Nguyen Thai Ngoc DuyOct 4, 2011

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.