git-gui: Remove 'Allow Partially Added Files' option.
Now that we take the approach of core Git where we allow the user to stage their changes directly into the index all of the time there is absolutely no reason to have the Allow Partially Added Files option, nor is there a reason or desire to default that option to false. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 21, 2007 at 04:19 UTC
6f48f3a6885e9dcc7d05a3a392723084dbf960d2
1 file changed
-41
git-gui.sh
-41
@@ -524,24 +524,6 @@ proc rescan_done {fd buf after} {
524
prune_selection
525
unlock_index
526
display_all_files
527
-
528
- if {$repo_config(gui.partialinclude) ne {true}} {
529
- set pathList [list]
530
- foreach path [array names file_states] {
531
- switch -- [lindex $file_states($path) 0] {
532
- A? -
533
- M? {lappend pathList $path}
534
- }
535
- }
536
- if {$pathList ne {}} {
537
- update_index \
538
- "Updating included files" \
539
- $pathList \
540
- [concat {reshow_diff;} $after]
541
- return
542
- }
543
- }
544
-
527
reshow_diff
528
uplevel #0 $after
529
}
@@ -918,27 +900,6 @@ A good commit message has the following format:
900
return
901
}
902
921
- # -- Update included files if partialincludes are off.
922
- #
923
- if {$repo_config(gui.partialinclude) ne {true}} {
924
- set pathList [list]
925
- foreach path [array names file_states] {
926
- switch -glob -- [lindex $file_states($path) 0] {
927
- A? -
928
- M? {lappend pathList $path}
929
- }
930
- }
931
- if {$pathList ne {}} {
932
- unlock_index
933
- update_index \
934
- "Updating included files" \
935
- $pathList \
936
- [concat {lock_index update;} \
937
- [list commit_prehook $curHEAD $msg]]
938
- return
939
- }
940
- }
941
-
903
commit_prehook $curHEAD $msg
904
}
905
@@ -2939,7 +2900,6 @@ proc do_options {} {
2900
pack $w.global -side right -fill both -expand 1 -pady 5 -padx 5
2901
2902
foreach option {
2942
- {b partialinclude {Allow Partially Added Files}}
2903
{b pullsummary {Show Pull Summary}}
2904
{b trustmtime {Trust File Modification Timestamps}}
2905
{i diffcontext {Number of Diff Context Lines}}
@@ -3299,7 +3259,6 @@ proc apply_config {} {
3259
3260
set default_config(gui.trustmtime) false
3261
set default_config(gui.pullsummary) true
3302
-set default_config(gui.partialinclude) false
3262
set default_config(gui.diffcontext) 5
3263
set default_config(gui.fontui) [font configure font_ui]
3264
set default_config(gui.fontdiff) [font configure font_diff]