From: Christian Jaeger <chrjae@gmail.com>
To: git@vger.kernel.org
Cc: Christian Jaeger <chrjae@gmail.com>
Subject: [PATCH] gitk: Refresh the index
Date: Sun, 27 Sep 2009 19:43:11 -0400 [thread overview]
Message-ID: <b53c9c0e96f4967935f6c36cd4b2655d22de7cef.1254093602.git.chrjae@gmail.com> (raw)
If one or more tracked files changed non-tracked metadata like mtime,
gitk would report it as "Local uncommitted changes, not checked in to
index" even if no actual changes have been made. (Clicking on the
"Local uncommitted changes.." entry would show the file but without
any diff.)
This refreshes the index in readdiffindex to avoid this and make gitk
behave more like "git status" instead.
Signed-off-by: Christian Jaeger <chrjae@gmail.com>
---
gitk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
* NOTE: I'm not subscribed to the mailing list. *
diff --git a/gitk b/gitk
index a0214b7..bb0e8e1 100755
--- a/gitk
+++ b/gitk
@@ -4898,6 +4898,7 @@ proc readdiffindex {fd serial inst} {
}
# now see if there are any local changes not checked in to the index
+ exec git update-index -q --refresh
set cmd "|git diff-files"
if {$vfilelimit($curview) ne {}} {
set cmd [concat $cmd -- $vfilelimit($curview)]
--
1.6.4.4
reply other threads:[~2009-09-27 23:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b53c9c0e96f4967935f6c36cd4b2655d22de7cef.1254093602.git.chrjae@gmail.com \
--to=chrjae@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).