[ Adding Gustaf Hendeby, the author of the first patch to support type changes ] On Tue, Nov 30, 2010 at 23:21, Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx> wrote: > This covers also the case for newly added files in the index. Like this: > > Â Âecho bar >foo > Â Âgit add foo > Â Ârm foo > Â Âln -s bar foo > > This will result in an state of AT. And for cases where the type change is > staged, and the new type was modified after the staging. Like this (cont.): > > Â Âgit add foo > Â Âgit commit -mfoo > Â Ârm foo > Â Âecho bar >foo > Â Âgit add foo > Â Âecho baz >foo > > Will result in an state of TM for foo. > > Signed-off-by: Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx> > --- > Âgit-gui.sh | Â Â6 ++++-- > Â1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/git-gui.sh b/git-gui.sh > index 38362fa..1bebcf1 100755 > --- a/git-gui.sh > +++ b/git-gui.sh > @@ -1993,7 +1993,9 @@ foreach i { > Â Â Â Â Â Â Â Â{MD {mc "Staged for commit, missing"}} > > Â Â Â Â Â Â Â Â{_T {mc "File type changed, not staged"}} > + Â Â Â Â Â Â Â {AT {mc "File type changed, old type staged for commit"}} > Â Â Â Â Â Â Â Â{T_ {mc "File type changed, staged"}} > + Â Â Â Â Â Â Â {TM {mc "Staged file type change, modification not staged"}} > > Â Â Â Â Â Â Â Â{_O {mc "Untracked, not staged"}} > Â Â Â Â Â Â Â Â{A_ {mc "Staged for commit"}} > @@ -3533,8 +3535,8 @@ proc popup_diff_menu {ctxm ctxmmg ctxmsm x y X Y} { > Â Â Â Â Â Â Â Â Â Â Â Â|| $current_diff_path eq {} > Â Â Â Â Â Â Â Â Â Â Â Â|| {__} eq $state > Â Â Â Â Â Â Â Â Â Â Â Â|| {_O} eq $state > - Â Â Â Â Â Â Â Â Â Â Â || {_T} eq $state > - Â Â Â Â Â Â Â Â Â Â Â || {T_} eq $state > + Â Â Â Â Â Â Â Â Â Â Â || [string match {?T} $state] > + Â Â Â Â Â Â Â Â Â Â Â || [string match {T?} $state] > Â Â Â Â Â Â Â Â Â Â Â Â|| [has_textconv $current_diff_path]} { > Â Â Â Â Â Â Â Â Â Â Â Âset s disabled > Â Â Â Â Â Â Â Â} else { > -- > 1.7.3.2.1200.ge4bf6 > > -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html