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

[PATCHv2] git-p4: handle symlinked directories

From
Luke Diamand <luke@diamand.org>
Date
Dec 17, 2016, 01:00 UTC
Message-ID
<20161217010040.1399-1-luke@diamand.org>
This is an updated version of my earlier git-p4 symlink fix.

This one now treats addition of all symlinks in the same way, rather than displaying the target file if linking to a file, or just the link target name if it's a directory.

That makes the git-p4 summary behave more like normal git commands (which also treat symlinks uniformaly).

This is a very slight change in behaviour, but I don't think it can break anything since it is only when generating the summary that goes after the P4 change template.

Luke Diamand (1):
  git-p4: avoid crash adding symlinked directory
 git-p4.py                     | 26 ++++++++++++++++++++------
 t/t9830-git-p4-symlink-dir.sh | 43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 6 deletions(-)
 create mode 100755 t/t9830-git-p4-symlink-dir.sh
-- 
2.8.2.703.g78b384c.dirty
Next: Luke Diamand
Message 1 of 2 in “[PATCHv2] git-p4: handle symlinked directories”
  1. Luke DiamandDec 17, 2016
  2. [PATCHv2] git-p4: avoid crash adding symlinked directoryLuke Diamand, Dec 17, 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.