From 88b2983a4ccc79b86babb0941b1690adfa231973 Mon Sep 17 00:00:00 2001 From: Nathan Kinsinger Date: Wed, 1 Sep 2010 23:15:50 -0600 Subject: [PATCH] Add a Short SHA column to the commit list Shows only the first 10 characters of the full SHA hash so as to take up less room. Show or hide it using the contextual menu for the table header. --- PBGitHistoryView.xib | 119 +++++++++++++++++++++++++++++++++---------- 1 file changed, 93 insertions(+), 26 deletions(-) diff --git a/PBGitHistoryView.xib b/PBGitHistoryView.xib index 20edb6f..37d329e 100644 --- a/PBGitHistoryView.xib +++ b/PBGitHistoryView.xib @@ -21,7 +21,7 @@ YES - + YES @@ -89,6 +89,7 @@ arran realSha relativeDateString + shortName PBGitCommit @@ -481,7 +482,7 @@ DateColumn 165 10 - 3.4028230607370965e+38 + 1000 75628096 2048 @@ -500,7 +501,7 @@ -2147481600 Text Cell - + YES @@ -532,11 +533,43 @@ compare: + + RelativeDateColumn + 30 + 10 + 1000 + + 75628096 + 2048 + Relative Date + + + + + + 338820672 + 1024 + + + + + + + 3 + YES + + + date + YES + compare: + + YES + SHAColumn 30 10 - 3.4028230607370965e+38 + 1000 75628096 2048 @@ -559,20 +592,20 @@ YES - - RelativeDateColumn + + ShortSHAColumn 30 10 - 3.4028230607370965e+38 + 1000 75628096 2048 - Relative Date + Short SHA - + 338820672 1024 @@ -584,11 +617,6 @@ 3 YES - - date - YES - compare: - YES @@ -1977,7 +2005,7 @@ formatter - + 416 @@ -1985,10 +2013,10 @@ value: arrangedObjects.date - + - + value: arrangedObjects.date value @@ -2002,6 +2030,26 @@ 417 + + + value: arrangedObjects.shortName + + + + + + value: arrangedObjects.shortName + value + arrangedObjects.shortName + + NSConditionallySetsEditable + + + 2 + + + 422 + @@ -2128,11 +2176,12 @@ YES - - + + + Commit List @@ -2188,7 +2237,7 @@ YES - + @@ -2534,23 +2583,37 @@ 409 - + YES - + 410 - - + + 414 - + + + 418 + + + YES + + + + + + 419 + + + @@ -2647,6 +2710,8 @@ 410.IBPluginDependency 414.IBDateFormatterBehaviorMetadataKey 414.IBPluginDependency + 418.IBPluginDependency + 419.IBPluginDependency 46.IBEditorWindowLastContentRect 46.IBPluginDependency 48.IBPluginDependency @@ -2819,6 +2884,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{9, 486}, {852, 432}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2855,7 +2922,7 @@ - 417 + 422