summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4ee9af)
raw | patch | inline | side by side (parent: e4ee9af)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 9 Nov 2006 03:48:34 +0000 (22:48 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 9 Nov 2006 03:48:34 +0000 (22:48 -0500) |
At least one user was confused by the term 'check-in'; he thought that
clicking that button would commit just that one file, but he wanted to
include all modified files into his next commit.
Since git doesn't really have a check-in concept this really was poor
language to use. Git does have an update-index concept but that is a
little too low level to show to the user.
So instead we now talk about including files in a commit.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
clicking that button would commit just that one file, but he wanted to
include all modified files into his next commit.
Since git doesn't really have a check-in concept this really was poor
language to use. Git does have an update-index concept but that is a
little too low level to show to the user.
So instead we now talk about including files in a commit.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui | patch | blob | history |
index 515cbb9dfb0b8694d54ef7b85d7fbf5c7d3ad4f2..c57d713144930b70d2c10c2fb117e5c42d29e651 100755 (executable)
--- a/git-gui
+++ b/git-gui
set single_commit 0
set status_active 0
set diff_active 0
-set checkin_active 0
+set update_active 0
set commit_active 0
set update_index_fd {}
error_popup "Unmerged files cannot be committed.
File $path has merge conflicts.
-You must resolve them and check the file in before committing.
+You must resolve them and include the file before committing.
"
unlock_index
return
}
}
if {!$files_ready} {
- error_popup {No checked-in files to commit.
+ error_popup {No included files to commit.
-You must check-in at least 1 file before you can commit.
+You must include at least 1 file before you can commit.
}
unlock_index
return
{__ i plain "Unmodified"}
{_M i mod "Modified"}
{M_ i fulltick "Checked in"}
- {MM i parttick "Partially checked in"}
+ {MM i parttick "Partially included"}
{_O o plain "Untracked"}
{A_ o fulltick "Added"}
update_status
}
-proc do_checkin_all {} {
- global checkin_active ui_status_value
+proc do_include_all {} {
+ global update_active ui_status_value
- if {$checkin_active || ![lock_index begin-update]} return
+ if {$update_active || ![lock_index begin-update]} return
- set checkin_active 1
- set ui_status_value {Checking in all files...}
+ set update_active 1
+ set ui_status_value {Including all modified files...}
after 1 {
with_update_index {
foreach path [array names file_states] {
}
}
}
- set checkin_active 0
+ set update_active 0
set ui_status_value {Ready.}
}
}
-font $mainfont
lappend disable_on_lock \
[list .mbar.commit entryconf [.mbar.commit index last] -state]
-.mbar.commit add command -label {Check-in All Files} \
- -command do_checkin_all \
+.mbar.commit add command -label {Include All Files} \
+ -command do_include_all \
-accelerator $M1T-U \
-font $mainfont
lappend disable_on_lock \
pack .vpane.lower.commarea.buttons.amend -side top -fill x
lappend disable_on_lock {.vpane.lower.commarea.buttons.amend conf -state}
-button .vpane.lower.commarea.buttons.ciall -text {Check-in All} \
- -command do_checkin_all \
+button .vpane.lower.commarea.buttons.incall -text {Include All} \
+ -command do_include_all \
-font $mainfont
-pack .vpane.lower.commarea.buttons.ciall -side top -fill x
-lappend disable_on_lock {.vpane.lower.commarea.buttons.ciall conf -state}
+pack .vpane.lower.commarea.buttons.incall -side top -fill x
+lappend disable_on_lock {.vpane.lower.commarea.buttons.incall conf -state}
button .vpane.lower.commarea.buttons.signoff -text {Sign Off} \
-command do_signoff \
bind all <$M1B-Key-R> do_rescan
bind . <$M1B-Key-s> do_signoff
bind . <$M1B-Key-S> do_signoff
-bind . <$M1B-Key-u> do_checkin_all
-bind . <$M1B-Key-U> do_checkin_all
+bind . <$M1B-Key-u> do_include_all
+bind . <$M1B-Key-U> do_include_all
bind . <$M1B-Key-Return> do_commit
bind all <$M1B-Key-q> do_quit
bind all <$M1B-Key-Q> do_quit