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

Re: [PATCH v3] gitk: added external diff file rename detection

From
Johannes Sixt <j6t@kdbg.org>
Date
Mar 16, 2025, 16:21 UTC
Message-ID
<53c5aed4-ce4f-4ad7-8e90-a97fd3c973cd@kdbg.org>
In-Reply-To
<pull.1774.v3.git.1741093275742.gitgitgadget@gmail.com>
Am 04.03.25 um 14:01 schrieb ToBoMi via GitGitGadget:
Show 18 quoted lines
> From: Tobias Boesch <tobias.boesch@miele.com>
> 
> * If a file was renamed between commits and an external diff is started
>   through gitk on the original or the renamed file name,
>   gitk was unable to open the renamed file in the external diff editor.
>   It failed to fetch the renamed file from git, because it fetched it
>   using its original path in contrast to using the renamed path of the
>   file.
> * With this change gitk detects the rename and opens the external diff
>   with the original and the renamed file instead of no file (it is able
>   to fetch the renamed file path and name now from git).
> * Since git doesn't destinguish between move or rename this also works
>   for moved files.
> * Showing the external diff with the original and the renamed file
>   works when either of the files is selected in gitk.
> 
> Signed-off-by: Tobias Boesch <tobias.boesch@miele.com>
> ---

I've picked up this patch, but haven't found time to look at it in detail. It will take some time. Please bear with me.

The commit message would need to be rewritten to match our usual style:
- We do not use bullet points for normal text paragraphs.
- We describe the status quo in present tense,
- and then the changes in imperative mood. (Like, "code, become so!")
- The subject is not in past tense, but usually also imperative.
-- Hannes
Previous: ToBoMi via GitGitGadgetNext: tobias.boesch@miele.com
Message 5 of 17 in “gitk: added external diff file rename detection”
  1. gitk: added external diff file rename detectionToBoMi via GitGitGadget, Aug 22, 2024
  2. gitk: added external diff file rename detectionToBoMi via GitGitGadget, Sep 6, 2024
  3. AW: [PATCH v2] gitk: added external diff file rename detectiontobias.boesch@miele.com, Oct 2, 2024
  4. gitk: added external diff file rename detectionToBoMi via GitGitGadget, Mar 4, 2025
  5. Johannes SixtMar 16, 2025
  6. AW: [PATCH v3] gitk: added external diff file rename detectiontobias.boesch@miele.com, Apr 28, 2025
  7. gitk: add external diff file rename detectionToBoMi via GitGitGadget, Apr 28, 2025
  8. Johannes SixtMay 6, 2025
  9. AW: [PATCH v4] gitk: add external diff file rename detectiontobias.boesch@miele.com, Jun 10, 2025
  10. gitk: add external diff file rename detectionToBoMi via GitGitGadget, Jun 10, 2025
  11. AW: [PATCH v5] gitk: add external diff file rename detectiontobias.boesch@miele.com, Jun 13, 2025
  12. gitk: add external diff file rename detectionToBoMi via GitGitGadget, Jun 24, 2025
  13. Johannes SixtJun 25, 2025
  14. gitk: add external diff file rename detectionToBoMi via GitGitGadget, Oct 31, 2025
  15. Johannes SixtNov 4, 2025
  16. gitk: add external diff file rename detectionToBoMi via GitGitGadget, Nov 6, 2025
  17. Johannes SixtNov 6, 2025

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.