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

Support dst-prefix and src-prefix in the .gitconfig file

From
DHDavid Heidelberg <david@ixit.cz>
Date
Mar 8, 2024, 09:59 UTC
Message-ID
<f80aaf4a-ffea-48e6-b279-c3b7a6a53996@ixit.cz>
Hello,

Recently Peter brought the `src-prefix = ./` and `dst-prefix = ./` as a possible solution to easy copy-paste of file location without needing to remove the prefix "[ab]/". The problem lies in not being able to define these options in .gitconfig

I would love to have the option to do
```
[diff]
   src-prefix = ./
   dst-prefix = ./
```

It seems to be a much better solution than using the available `noprefix = true` which breaks multiple workflows.

David
-- 
David Heidelberg
Message 1 of 1 in “Support dst-prefix and src-prefix in the .gitconfig file”
  1. David HeidelbergMar 8, 2024

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.