git-gui: enable editing of .gitattributes and info/attributes filespu
authorPat Thoyts <[email protected]>
Mon, 7 Feb 2011 14:31:47 +0000 (7 14:31 +0000)
committerPat Thoyts <[email protected]>
Fri, 25 Mar 2011 08:28:22 +0000 (25 08:28 +0000)
Signed-off-by: Pat Thoyts <[email protected]>
git-gui.sh

index 1bdb0a8..81586a2 100755 (executable)
@@ -2680,16 +2680,23 @@ set ui_visualize_current [.mbar.repository index last]
 .mbar.repository add command \
        -label [mc "Edit .gitignore ..."] \
        -command [list edit_ignore_file [file join $_gitworktree .gitignore]]
-if {[have_info_exclude]} {
-       .mbar.repository add command \
-               -label [mc "Edit project exclude file ..."] \
-               -command [list edit_ignore_file [gitdir info exclude]]
-}
+.mbar.repository add command \
+       -label [mc "Edit project exclude file ..."] \
+       -command [list edit_ignore_file [gitdir info exclude]]
 .mbar.repository add command \
        -label [mc "Edit global exclude file ..."] \
        -command [list edit_ignore_file [get_config core.excludesfile]]
 .mbar.repository add separator
 
+.mbar.repository add command \
+       -label [mc "Edit .gitattributes ..."] \
+       -command [list editfile [file join $_gitworktree .gitattributes]]
+.mbar.repository add command \
+       -label [mc "Edit project attributes file ..."] \
+       -command [list editfile [gitdir info attributes]]
+.mbar.repository add separator
+
+
 proc current_branch_write {args} {
        global current_branch
        .mbar.repository entryconf $::ui_browse_current \