Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
bfacf83
git-gui: strip the commit message after running commit-msg hook
orgads Jul 13, 2025
2441e19
gitk: Add user preference to hide specific references
salty-horse May 21, 2025
100f597
gitk: set config dialog color swatches in one place
mark987 Jun 5, 2025
fdaba07
gitk: restore ui colors after cancelling config dialog
mark987 Jun 6, 2025
6ea3006
gitk: update scrolling for TclTk 8.7+ / TIP 474
mark987 Jun 6, 2025
ab30c04
gitk: switch to -translation binary
mark987 Mar 25, 2025
bcf94fe
gitk: Tcl9 doesn't expand ~, use $env(HOME)
mark987 Mar 24, 2025
aa1b8d3
gitk: use -profile tcl8 for file input with Tcl 9
mark987 Mar 14, 2025
ac222bc
gitk: use -profile tcl8 on encoding conversions
mark987 May 18, 2025
4e605b7
gitk: allow Tcl/Tk 9.0+
mark987 Mar 20, 2025
b76a5a8
git-gui: do not add directories to PATH on Windows
mark987 Apr 13, 2025
e80065e
git-gui: let nice work on Windows
mark987 May 20, 2025
3c8e1fe
git-gui: Windows tk_getSaveFile is not useful for shortcuts
mark987 Apr 13, 2025
158800a
git-gui: use /cmd/git-gui.exe for shortcut
mark987 Apr 13, 2025
847c8a2
git-gui: assure -eofchar {} on all channels
mark987 May 21, 2025
f6d3ee2
git-gui: translation binary defines iso8859-1
mark987 May 22, 2025
40f54f6
git-gui: replace encoding binary with iso8859-1
mark987 May 22, 2025
07714e2
git-gui: do not mix -translation binary and -encoding
mark987 May 21, 2025
74d9e38
gitk i18n: Update Bulgarian translation (322t)
alshopov Jul 28, 2025
79be55f
gitk i18n: Remove the locations within the Bulgarian translation
alshopov Jul 29, 2025
dfd9b38
git-gui i18n: Update Bulgarian translation (557t)
alshopov Jul 28, 2025
8fd50a4
git-gui i18n: Remove the locations within the Bulgarian translation
alshopov Jul 29, 2025
b281195
gitk: avoid duplicated upstream refs
j6t Jul 29, 2025
9965cc7
gitk: filter invisible upstream refs from reference list
Jul 31, 2025
8c02ecc
git-gui: remove uname_O in Makefile
carenas Jul 31, 2025
de0ac94
git-gui: fix dependency of GITGUI_MAIN on generator
carenas Jul 31, 2025
df41037
git-gui: retire Git Gui.app
carenas Jul 31, 2025
0e3233b
git-gui: honor TCLTK_PATH in git-gui--askpass
carenas Jul 31, 2025
f91175e
Merge branch 'ml/windows-tie-loose-ends'
j6t Jul 31, 2025
beab415
git-gui: remove EOL translation for gets
mark987 May 22, 2025
0832752
git-gui: themed.tcl: use full namespace for color
mark987 May 10, 2025
24b1078
git-gui: use -profile tcl8 for file input with Tcl 9
mark987 May 31, 2025
cc41d37
git-gui: use -profile tcl8 on encoding conversions
mark987 May 31, 2025
c20408c
git-gui: Allow Tcl 9.0
mark987 May 17, 2025
f896039
Merge branch 'mr/sort-refs-by-type'
j6t Aug 1, 2025
cb5607e
Merge branch 'master' of github.com:alshopov/gitk
j6t Aug 1, 2025
e51b17e
Merge branch 'ml/abandon-old-version'
j6t Aug 1, 2025
ffe115e
Merge branch 'oa/hide-more-refs'
j6t Aug 1, 2025
148e914
Merge branch 'ml/tcltk-9'
j6t Aug 1, 2025
0919339
Merge branch 'master' of https://github.com/alshopov/git-gui
j6t Aug 2, 2025
83fd8a0
Merge branch 'ml/tcl90'
j6t Aug 2, 2025
14ff7c8
Merge branch 'strip-post-hooks' of github.com:orgads/git-gui
j6t Aug 2, 2025
98a5b85
gitk: Mention globs in description of preference to hide custom refs
ilyagr Aug 3, 2025
93ff79e
Merge branch 'docglobs' of github.com:ilyagr/gitk
j6t Aug 4, 2025
e3efff4
git-gui: ensure own version of git-gui--askpass is used
carenas Jul 31, 2025
e3923e3
Merge branch 'cb/no-tcl86-on-macos'
j6t Aug 4, 2025
e2ad556
Merge branch 'master' of https://github.com/j6t/gitk
gitster Aug 4, 2025
112648d
Merge branch 'master' of https://github.com/j6t/git-gui
gitster Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion git-gui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
config.mak
Git Gui.app*
git-gui.tcl
GIT-GUI-BUILD-OPTIONS
GIT-VERSION-FILE
git-gui
git-gui--askpass
lib/tclIndex
1 change: 0 additions & 1 deletion git-gui/GIT-GUI-BUILD-OPTIONS.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ GITGUI_RELATIVE=@GITGUI_RELATIVE@
SHELL_PATH=@SHELL_PATH@
TCLTK_PATH=@TCLTK_PATH@
TCL_PATH=@TCL_PATH@
TKEXECUTABLE=@TKEXECUTABLE@
61 changes: 6 additions & 55 deletions git-gui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ GIT-VERSION-FILE: FORCE
@$(SHELL_PATH) ./GIT-VERSION-GEN . $@

uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')

SCRIPT_SH = git-gui.sh
Expand Down Expand Up @@ -54,8 +53,6 @@ INSTALL_R0 = $(INSTALL) -m 644 # space is required here
INSTALL_R1 =
INSTALL_X0 = $(INSTALL) -m 755 # space is required here
INSTALL_X1 =
INSTALL_A0 = find # space is required here
INSTALL_A1 = | cpio -pud
INSTALL_L0 = rm -f # space is required here
INSTALL_L1 = && ln # space is required here
INSTALL_L2 =
Expand All @@ -80,8 +77,6 @@ ifndef V
INSTALL_R1 = && echo ' ' INSTALL 644 `basename $$src` && $(INSTALL) -m 644 $$src
INSTALL_X0 = src=
INSTALL_X1 = && echo ' ' INSTALL 755 `basename $$src` && $(INSTALL) -m 755 $$src
INSTALL_A0 = src=
INSTALL_A1 = && echo ' ' INSTALL ' ' `basename "$$src"` && find "$$src" | cpio -pud

INSTALL_L0 = dst=
INSTALL_L1 = && src=
Expand All @@ -102,18 +97,6 @@ else
TCL_PATH ?= $(dir $(TCLTK_PATH))$(notdir $(subst wish,tclsh,$(TCLTK_PATH)))
endif

ifeq ($(uname_S),Darwin)
TKFRAMEWORK = /Library/Frameworks/Tk.framework/Resources/Wish.app
ifeq ($(shell echo "$(uname_R)" | awk -F. '{if ($$1 >= 9) print "y"}')_$(shell test -d $(TKFRAMEWORK) || echo n),y_n)
TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish.app
ifeq ($(shell test -d $(TKFRAMEWORK) || echo n),n)
TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish\ Shell.app
endif
endif
TKEXECUTABLE = $(TKFRAMEWORK)/Contents/MacOS/$(shell basename "$(TKFRAMEWORK)" .app)
TKEXECUTABLE_SQ = $(subst ','\'',$(TKEXECUTABLE))
endif

ifeq ($(findstring $(firstword -$(MAKEFLAGS)),s),s)
QUIET_GEN =
endif
Expand All @@ -131,16 +114,10 @@ libdir_SQ = $(subst ','\'',$(gg_libdir))
exedir = $(dir $(gitexecdir))share/git-gui/lib

GITGUI_RELATIVE :=
GITGUI_MACOSXAPP :=

ifeq ($(exedir),$(gg_libdir))
GITGUI_RELATIVE := 1
endif
ifeq ($(uname_S),Darwin)
ifeq ($(shell test -d $(TKFRAMEWORK) && echo y),y)
GITGUI_MACOSXAPP := YesPlease
endif
endif
ifneq (,$(findstring MINGW,$(uname_S)))
ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
NO_MSGFMT=1
Expand All @@ -149,28 +126,14 @@ endif
GITGUI_RELATIVE := 1
endif

ifdef GITGUI_MACOSXAPP
GITGUI_MAIN := git-gui.tcl

git-gui: generate-macos-wrapper.sh GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
$(QUIET_GEN)$(SHELL_PATH) generate-macos-wrapper.sh "$@" ./GIT-GUI-BUILD-OPTIONS ./GIT-VERSION-FILE

Git\ Gui.app: GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS \
macosx/Info.plist \
macosx/git-gui.icns \
macosx/AppMain.tcl \
$(TKEXECUTABLE)
$(QUIET_GEN)$(SHELL_PATH) generate-macos-app.sh . "$@" ./GIT-GUI-BUILD-OPTIONS ./GIT-VERSION-FILE
endif

ifdef GITGUI_WINDOWS_WRAPPER
GITGUI_MAIN := git-gui.tcl

git-gui: windows/git-gui.sh
cp $< $@
endif

$(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
$(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS generate-git-gui.sh
$(QUIET_GEN)$(SHELL_PATH) generate-git-gui.sh "$<" "$@" ./GIT-GUI-BUILD-OPTIONS ./GIT-VERSION-FILE

XGETTEXT ?= xgettext
Expand Down Expand Up @@ -207,18 +170,17 @@ GIT-GUI-BUILD-OPTIONS: FORCE
-e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
-e 's|@TCLTK_PATH@|$(TCLTK_PATH_SQ)|' \
-e 's|@TCL_PATH@|$(TCL_PATH_SQ)|' \
-e 's|@TKEXECUTABLE@|$(TKEXECUTABLE_SQ)|' \
$@.in >$@+
@if grep -q '^[A-Z][A-Z_]*=@.*@$$' $@+; then echo "Unsubstituted build options in $@" >&2 && exit 1; fi
@if cmp $@+ $@ >/dev/null 2>&1; then $(RM) $@+; else mv $@+ $@; fi

ifdef GITGUI_MACOSXAPP
all:: git-gui Git\ Gui.app
endif
git-gui--askpass: git-gui--askpass.sh GIT-GUI-BUILD-OPTIONS generate-script.sh
$(QUIET_GEN)$(SHELL_PATH) generate-script.sh $@ $< ./GIT-GUI-BUILD-OPTIONS

ifdef GITGUI_WINDOWS_WRAPPER
all:: git-gui
endif
all:: $(GITGUI_MAIN) lib/tclIndex $(ALL_MSGFILES)
all:: $(GITGUI_MAIN) git-gui--askpass lib/tclIndex $(ALL_MSGFILES)

install: all
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(INSTALL_D1)
Expand All @@ -230,10 +192,6 @@ ifdef GITGUI_WINDOWS_WRAPPER
endif
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(INSTALL_D1)
$(QUIET)$(INSTALL_R0)lib/tclIndex $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)'
ifdef GITGUI_MACOSXAPP
$(QUIET)$(INSTALL_A0)'Git Gui.app' $(INSTALL_A1) '$(DESTDIR_SQ)$(libdir_SQ)'
$(QUIET)$(INSTALL_X0)git-gui.tcl $(INSTALL_X1) '$(DESTDIR_SQ)$(libdir_SQ)'
endif
$(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)' &&) true
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(INSTALL_D1)
$(QUIET)$(foreach p,$(ALL_MSGFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
Expand All @@ -248,10 +206,6 @@ ifdef GITGUI_WINDOWS_WRAPPER
endif
$(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(libdir_SQ)'
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/tclIndex $(REMOVE_F1)
ifdef GITGUI_MACOSXAPP
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)/Git Gui.app' $(REMOVE_F1)
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/git-gui.tcl $(REMOVE_F1)
endif
$(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
$(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(msgsdir_SQ)'
$(QUIET)$(foreach p,$(ALL_MSGFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
Expand All @@ -265,11 +219,8 @@ dist-version: GIT-VERSION-FILE
@sed 's|^GITGUI_VERSION=||' <GIT-VERSION-FILE >$(TARDIR)/version

clean::
$(RM_RF) $(GITGUI_MAIN) lib/tclIndex po/*.msg $(PO_TEMPLATE)
$(RM_RF) $(GITGUI_MAIN) git-gui--askpass lib/tclIndex po/*.msg $(PO_TEMPLATE)
$(RM_RF) GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
ifdef GITGUI_MACOSXAPP
$(RM_RF) 'Git Gui.app'* git-gui
endif
ifdef GITGUI_WINDOWS_WRAPPER
$(RM_RF) git-gui
endif
Expand Down
30 changes: 0 additions & 30 deletions git-gui/generate-macos-app.sh

This file was deleted.

35 changes: 0 additions & 35 deletions git-gui/generate-macos-wrapper.sh

This file was deleted.

22 changes: 22 additions & 0 deletions git-gui/generate-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

if test $# -ne 3
then
echo >&2 "USAGE: $0 <OUTPUT> <INPUT> <GIT-GUI-BUILD-OPTIONS>"
exit 1
fi

OUTPUT="$1"
INPUT="$2"
BUILD_OPTIONS="$3"

. "$BUILD_OPTIONS"

sed \
-e "1s|#!.*/sh|#!$SHELL_PATH|" \
-e "1,3s|^exec wish|exec '$TCLTK_PATH'|" \
"$INPUT" >"$OUTPUT"

chmod a+x "$OUTPUT"
File renamed without changes.
Loading