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

[PATCH v2] show: add --follow-symlinks option for <rev>:<path>

From
Michael Vogt <mvo@ubuntu.com>
Date
Apr 16, 2018, 09:36 UTC
Message-ID
<20180416093625.15752-1-mvo@ubuntu.com>
In-Reply-To
<87fu3yg6od.fsf@evledraar.gmail.com>

Updated version of the `git show --follow-symlink` patch. This version includes the feedback from Ævar Arnfjörð Bjarmason and Stefan Beller:

- commit message updated
- test fixes merged from Ævar (thanks!)
- Documentation/git-show.txt clarified

It does not include a test for --follow-symlinks in the dirlink case when a file is behind a dirlink symlink. This this currently fails with a non-descriptive error message. I hope to find time to improve this error message at some point and then a test for this will be added.

It also does not include a test for a repo with symlinks when running on a system without SYMLINKS. I don't have access to such a system, sorry.

Previous: Ævar Arnfjörð BjarmasonNext: Michael Vogt
Message 9 of 12 in “Add "git show --follow-symlinks HEAD:symlink"”
  1. Add "git show --follow-symlinks HEAD:symlink"Michael Vogt, Apr 9, 2018
  2. Ævar Arnfjörð BjarmasonApr 9, 2018
  3. Michael VogtApr 13, 2018
  4. Stefan BellerApr 13, 2018
  5. Michael VogtApr 13, 2018
  6. Ævar Arnfjörð BjarmasonApr 13, 2018
  7. support: git show --follow-symlinks HEAD:symlinkMichael Vogt, Apr 13, 2018
  8. Ævar Arnfjörð BjarmasonApr 13, 2018
  9. show: add --follow-symlinks option for <rev>:<path>Michael Vogt, Apr 16, 2018
  10. show: add --follow-symlinks option for <rev>:<path>Michael Vogt, Apr 16, 2018
  11. Junio C HamanoApr 16, 2018
  12. Michael VogtApr 13, 2018

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.