diff options
| author | Junio C Hamano <gitster@pobox.com> | 2011-05-31 10:57:32 -0700 | 
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-05-31 10:57:32 -0700 | 
| commit | 2d11f21c365821ccba1e093f22b99ad71b955f21 (patch) | |
| tree | 1ecbe232f12904520838ab4adff6aa70d5ba6e80 /git-gui/lib/index.tcl | |
| parent | 28b9264dd6cbadcef8b3e48c24ffcb2893b668b3 (diff) | |
| parent | 5b42477b59886a85d4b49a60313f9b9d4a0d576f (diff) | |
Merge remote-tracking branch 'ko/maint' into jc/diff-index-quick-exit-early
* ko/maint: (4352 commits)
  git-submodule.sh: separate parens by a space to avoid confusing some shells
  Documentation/technical/api-diff.txt: correct name of diff_unmerge()
  read_gitfile_gently: use ssize_t to hold read result
  remove tests of always-false condition
  rerere.c: diagnose a corrupt MERGE_RR when hitting EOF between TAB and '\0'
  Git 1.7.5.3
  init/clone: remove short option -L and document --separate-git-dir
  do not read beyond end of malloc'd buffer
  git-svn: Fix git svn log --show-commit
  Git 1.7.5.2
  provide a copy of the LGPLv2.1
  test core.gitproxy configuration
  copy_gecos: fix not adding nlen to len when processing "&"
  Update draft release notes to 1.7.5.2
  Documentation/git-fsck.txt: fix typo: unreadable -> unreachable
  send-pack: avoid deadlock on git:// push with failed pack-objects
  connect: let callers know if connection is a socket
  connect: treat generic proxy processes like ssh processes
  sideband_demux(): fix decl-after-stmt
  t3503: test cherry picking and reverting root commits
  ...
Conflicts:
	diff.c
Diffstat (limited to 'git-gui/lib/index.tcl')
| -rw-r--r-- | git-gui/lib/index.tcl | 49 | 
1 files changed, 30 insertions, 19 deletions
diff --git a/git-gui/lib/index.tcl b/git-gui/lib/index.tcl index d33896a0ce..5d7bbf23ed 100644 --- a/git-gui/lib/index.tcl +++ b/git-gui/lib/index.tcl @@ -8,36 +8,41 @@ proc _delete_indexlock {} {  }  proc _close_updateindex {fd after} { +	global use_ttk NS  	fconfigure $fd -blocking 1  	if {[catch {close $fd} err]} {  		set w .indexfried -		toplevel $w +		Dialog $w +		wm withdraw $w  		wm title $w [strcat "[appname] ([reponame]): " [mc "Index Error"]]  		wm geometry $w "+[winfo rootx .]+[winfo rooty .]" -		pack [label $w.msg \ -			-justify left \ -			-anchor w \ -			-text [strcat \ -				[mc "Updating the Git index failed.  A rescan will be automatically started to resynchronize git-gui."] \ -				"\n\n$err"] \ -			] -anchor w - -		frame $w.buttons -		button $w.buttons.continue \ +		set s [mc "Updating the Git index failed.  A rescan will be automatically started to resynchronize git-gui."] +		text $w.msg -yscrollcommand [list $w.vs set] \ +			-width [string length $s] -relief flat \ +			-borderwidth 0 -highlightthickness 0 \ +			-background [get_bg_color $w] +		$w.msg tag configure bold -font font_uibold -justify center +		${NS}::scrollbar $w.vs -command [list $w.msg yview] +		$w.msg insert end $s bold \n\n$err {} +		$w.msg configure -state disabled + +		${NS}::button $w.continue \  			-text [mc "Continue"] \  			-command [list destroy $w] -		pack $w.buttons.continue -side right -padx 5 -		button $w.buttons.unlock \ +		${NS}::button $w.unlock \  			-text [mc "Unlock Index"] \  			-command "destroy $w; _delete_indexlock" -		pack $w.buttons.unlock -side right -		pack $w.buttons -side bottom -fill x -pady 10 -padx 10 +		grid $w.msg - $w.vs -sticky news +		grid $w.unlock $w.continue - -sticky se -padx 2 -pady 2 +		grid columnconfigure $w 0 -weight 1 +		grid rowconfigure $w 0 -weight 1  		wm protocol $w WM_DELETE_WINDOW update -		bind $w.buttons.continue <Visibility> " +		bind $w.continue <Visibility> "  			grab $w -			focus $w.buttons.continue +			focus %W  		" +		wm deiconify $w  		tkwait window $w  		$::main_status stop @@ -98,8 +103,11 @@ proc write_update_indexinfo {fd pathList totalCnt batch after} {  		set s $file_states($path)  		switch -glob -- [lindex $s 0] {  		A? {set new _O} -		M? {set new _M} +		MT - +		TM -  		T_ {set new _T} +		M? {set new _M} +		TD -  		D_ {set new _D}  		D? {set new _?}  		?? {continue} @@ -162,7 +170,10 @@ proc write_update_index {fd pathList totalCnt batch after} {  		AD {set new __}  		?D {set new D_}  		_O - +		AT -  		AM {set new A_} +		TM - +		MT -  		_T {set new T_}  		_U -  		U? { @@ -256,7 +267,7 @@ proc unstage_helper {txt paths} {  		switch -glob -- [lindex $file_states($path) 0] {  		A? -  		M? - -		T_ - +		T? -  		D? {  			lappend pathList $path  			if {$path eq $current_diff_path} {  | 
