]> git.99rst.org Git - git.git/commit
git-gui: simplify PATH de-duplication
authorMark Levedahl <redacted>
Wed, 20 Aug 2025 15:31:43 +0000 (11:31 -0400)
committerJohannes Sixt <redacted>
Thu, 21 Aug 2025 18:35:26 +0000 (20:35 +0200)
commite369dbeb794a21c381dd7b06dac880763140bfb3
tree2b6312fc07fdd25c7732709315f52c457a8ece79
parente3923e3e90da55e12545b5ef5aa34f21e97409d8
git-gui: simplify PATH de-duplication

git-gui since 8fe7861c51 ("git-gui: assure PATH has only absolute
elements.", 2025-04-11) uses a list to maintain order and a dict to
detect duplicated elements without quadratic complexity.  But, Tcl's
dict explicitly maintains keys in the order first added, thus the list
is not needed.  Simplify the code.

Signed-off-by: Mark Levedahl <redacted>
Signed-off-by: Johannes Sixt <redacted>
git-gui.sh
git clone https://git.99rst.org/PROJECT