]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: git-blame understands -w and textconv
authorMark Levedahl <mlevedahl@gmail.com>
Tue, 13 Feb 2024 05:09:02 +0000 (00:09 -0500)
committerMark Levedahl <mlevedahl@gmail.com>
Sat, 19 Jul 2025 03:48:06 +0000 (23:48 -0400)
git-gui uses alternate code paths for git versions < 1.7.2, avoiding use
of --ignore-all-space and textconv. git-gui requires git v2.36 or later,
so this alternate code is obsolete. Remove it.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
lib/blame.tcl

index d6fd8bea91ff531cbec890c13523de575efc46ca..84d57fc77cab4b8ec9c521ef5295d7711faed356 100644 (file)
@@ -470,7 +470,7 @@ method _load {jump} {
        $w_path conf -text [escape_path $path]
 
        set do_textconv 0
-       if {![is_config_false gui.textconv] && [git-version >= 1.7.2]} {
+       if {![is_config_false gui.textconv]} {
                set filter [gitattr $path diff set]
                set textconv [get_config [join [list diff $filter textconv] .]]
                if {$filter ne {set} && $textconv ne {}} {
@@ -807,9 +807,7 @@ method _read_blame {fd cur_w cur_d} {
                                # thorough copy search; insert before the threshold
                                set original_options [linsert $original_options 0 -C]
                        }
-                       if {[git-version >= 1.5.3]} {
-                               lappend original_options -w ; # ignore indentation changes
-                       }
+                       lappend original_options -w ; # ignore indentation changes
 
                        _exec_blame $this $w_amov @amov_data \
                                $original_options \
@@ -857,9 +855,7 @@ method _fullcopyblame {} {
        set threshold [get_config gui.copyblamethreshold]
        set original_options [list -C -C "-C$threshold"]
 
-       if {[git-version >= 1.5.3]} {
-               lappend original_options -w ; # ignore indentation changes
-       }
+       lappend original_options -w ; # ignore indentation changes
 
        # Find the line range
        set pos @$::cursorX,$::cursorY