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

[PATCH v2 4/4] gitk: pass --no-graph to `git log`

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Feb 10, 2022, 16:52 UTC
Message-ID
<20220210165209.310930-4-alexhenrie24@gmail.com>
In-Reply-To
<20220210165209.310930-1-alexhenrie24@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
v2: use --no-graph instead of log.graph=false
---
 gitk-git/gitk | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 23d9dd1fe0..24099ce0b8 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -411,8 +411,8 @@ proc start_rev_list {view} {
     }
 
     if {[catch {
-        set fd [open [concat | git log --no-color -z --pretty=raw $show_notes \
-                        --parents --boundary $args "--" $files] r]
+        set fd [open [concat | git log --no-color --no-graph -z --pretty=raw \
+                        $show_notes --parents --boundary $args "--" $files] r]
     } err]} {
         error_popup "[mc "Error executing git log:"] $err"
         return 0
@@ -559,8 +559,9 @@ proc updatecommits {} {
         set args $vorigargs($view)
     }
     if {[catch {
-        set fd [open [concat | git log --no-color -z --pretty=raw $show_notes \
-                        --parents --boundary $args "--" $vfilelimit($view)] r]
+        set fd [open [concat | git log --no-color --no-graph -z --pretty=raw
+                        $show_notes --parents --boundary $args "--"
+                        $vfilelimit($view)] r]
     } err]} {
         error_popup "[mc "Error executing git log:"] $err"
         return
-- 
2.32.0.2645.gc109162a1f
Previous: Alex Henrie
Message 4 of 4 in “log: fix memory leak if --graph is passed multiple times”
  1. 1/4 log: fix memory leak if --graph is passed multiple timesAlex Henrie, Feb 10, 2022
  2. 2/4 log: add a --no-graph optionAlex Henrie, Feb 10, 2022
  3. 3/4 log: add a log.graph config optionAlex Henrie, Feb 10, 2022
  4. 4/4 gitk: pass --no-graph to `git log`Alex Henrie, Feb 10, 2022

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.