Skip to contentSkip to conversation

git-gui: use different icon for new and modified files in the index

PATCH In review Peter Oberndorfer 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-gui: use different icon for new and modified files in the index

This allows to quickly differentiate between new and modified files in the index without selecting the file and looking at the diff.

---

At work i often use git add '*_en.properties' and after that i like to check which files are new and which ones where changed.

I hope this is useful for somebody else too.

While creating the patch i found out that file_parttick seems to be unused.

 git-gui/git-gui.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-gui/git-gui.sh +1 -1
index 718277a..880252d 100755
@@ -1844,7 +1844,7 @@ set ui_index .vpane.files.index.list
 set ui_workdir .vpane.files.workdir.list
 
 set all_icons(_$ui_index)   file_plain
-set all_icons(A$ui_index)   file_fulltick
+set all_icons(A$ui_index)   file_plain
 set all_icons(M$ui_index)   file_fulltick
 set all_icons(D$ui_index)   file_removed
 set all_icons(U$ui_index)   file_merge
Signature · 1 line
1.6.6.1
#1 lore raw
Quoted 4 lines · Peter Oberndorfer

This allows to quickly differentiate between new and modified files in the index without selecting the file and looking at the diff.

Thanks.

Quoted 1 line

While creating the patch i found out that file_parttick seems to be unused.

Yup, it is unused. Thanks for noticing, I removed it.

Signature · 1 line
Shawn.