summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e0a92f)
raw | patch | inline | side by side (parent: 1e0a92f)
author | Christian Stimming <stimming@tuhh.de> | |
Sat, 28 Jul 2007 20:17:10 +0000 (22:17 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 29 Jul 2007 07:09:07 +0000 (03:09 -0400) |
Also, the warning message when clicking "Reset" is adapted to
the wording "Reset" rather than a confusion "Cancel commit?".
Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
the wording "Reset" rather than a confusion "Cancel commit?".
Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history | |
lib/checkout_op.tcl | patch | blob | history | |
lib/commit.tcl | patch | blob | history | |
lib/index.tcl | patch | blob | history | |
lib/merge.tcl | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index f87b955fdb98bdd0591c9c02c52075e245cc2e19..d7fad46e5ed7ced3989895678851025db57b5ecf 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
lappend disable_on_lock \
[list .mbar.commit entryconf [.mbar.commit index last] -state]
- .mbar.commit add command -label {Add To Commit} \
+ .mbar.commit add command -label {Stage To Commit} \
-command do_add_selection
lappend disable_on_lock \
[list .mbar.commit entryconf [.mbar.commit index last] -state]
- .mbar.commit add command -label {Add Tracked Files To Commit} \
+ .mbar.commit add command -label {Stage Changed Files To Commit} \
-command do_add_all \
-accelerator $M1T-I
lappend disable_on_lock \
lappend disable_on_lock \
{.vpane.lower.commarea.buttons.rescan conf -state}
-button .vpane.lower.commarea.buttons.incall -text {Add Tracked} \
+button .vpane.lower.commarea.buttons.incall -text {Stage Changed} \
-command do_add_all
pack .vpane.lower.commarea.buttons.incall -side top -fill x
lappend disable_on_lock \
diff --git a/lib/checkout_op.tcl b/lib/checkout_op.tcl
index 40cc73a527374124be6539f0bfe81ddc54a1f227..170f737f611b48fa901e1789ec6d4f4d64834537 100644 (file)
--- a/lib/checkout_op.tcl
+++ b/lib/checkout_op.tcl
if {[lock_index checkout_op]} {
after idle [cb _start_checkout]
} else {
- _error $this "Index is already locked."
+ _error $this "Staging area (index) is already locked."
delete_this
}
}
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 1f5c2c3d44684459fa9b9692ab85f54ff858d83b..f857a2ff5bb3d0e151ea471a16a1b233117afc70 100644 (file)
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
U? {
error_popup "Unmerged files cannot be committed.
-File [short_path $path] has merge conflicts. You must resolve them and add the file before committing.
+File [short_path $path] has merge conflicts. You must resolve them and stage the file before committing.
"
unlock_index
return
if {!$files_ready && ![string match *merge $curType]} {
info_popup {No changes to commit.
-You must add at least 1 file before you can commit.
+You must stage at least 1 file before you can commit.
}
unlock_index
return
diff --git a/lib/index.tcl b/lib/index.tcl
index 3ea72e1ec9807477e72e48306d7e3ad47a393abb..f47f9290c8f82b2c899c839c26d9921e85b9fa0d 100644 (file)
--- a/lib/index.tcl
+++ b/lib/index.tcl
"[appname] ([reponame])" \
"Revert changes in $s?
-Any unadded changes will be permanently lost by the revert." \
+Any unstaged changes will be permanently lost by the revert." \
question \
1 \
{Do Nothing} \
diff --git a/lib/merge.tcl b/lib/merge.tcl
index 148d859c5c11022f68c4c4217953ac1cd3f1f8f1..f6a2df3c064b3132d7607211656a7aee53638881 100644 (file)
--- a/lib/merge.tcl
+++ b/lib/merge.tcl
File [short_path $path] has merge conflicts.
-You must resolve them, add the file, and commit to complete the current merge. Only then can you begin another merge.
+You must resolve them, stage the file, and commit to complete the current merge. Only then can you begin another merge.
"
unlock_index
return 0
if {![lock_index abort]} return
if {[string match *merge* $commit_type]} {
- set op merge
+ set op_question "Abort merge?
+
+Aborting the current merge will cause *ALL* uncommitted changes to be lost.
+
+Continue with aborting the current merge?"
} else {
- set op commit
- }
+ set op_question "Reset changes?
- if {[ask_popup "Abort $op?
+Resetting the changes will cause *ALL* uncommitted changes to be lost.
-Aborting the current $op will cause *ALL* uncommitted changes to be lost.
+Continue with resetting the current changes?"
+ }
-Continue with aborting the current $op?"] eq {yes}} {
+ if {[ask_popup $op_question] eq {yes}} {
set fd [git_read read-tree --reset -u HEAD]
fconfigure $fd -blocking 0 -translation binary
fileevent $fd readable [namespace code [list _reset_wait $fd]]