@@ -90,7 +90,7 @@ func (self *UndoController) reflogUndo() error {
90
90
case COMMIT :
91
91
self .c .Confirm (types.ConfirmOpts {
92
92
Title : self .c .Tr .Actions .Undo ,
93
- Prompt : fmt .Sprintf (self .c .Tr .SoftResetPrompt , action .from ),
93
+ Prompt : fmt .Sprintf (self .c .Tr .SoftResetPrompt , utils . ShortHash ( action .from ) ),
94
94
HandleConfirm : func () error {
95
95
self .c .LogAction (self .c .Tr .Actions .Undo )
96
96
return self .c .WithWaitingStatus (undoingStatus , func (gocui.Task ) error {
@@ -103,7 +103,7 @@ func (self *UndoController) reflogUndo() error {
103
103
case REBASE :
104
104
self .c .Confirm (types.ConfirmOpts {
105
105
Title : self .c .Tr .Actions .Undo ,
106
- Prompt : fmt .Sprintf (self .c .Tr .HardResetAutostashPrompt , action .from ),
106
+ Prompt : fmt .Sprintf (self .c .Tr .HardResetAutostashPrompt , utils . ShortHash ( action .from ) ),
107
107
HandleConfirm : func () error {
108
108
self .c .LogAction (self .c .Tr .Actions .Undo )
109
109
return self .hardResetWithAutoStash (action .from , hardResetOptions {
@@ -157,7 +157,7 @@ func (self *UndoController) reflogRedo() error {
157
157
case COMMIT , REBASE :
158
158
self .c .Confirm (types.ConfirmOpts {
159
159
Title : self .c .Tr .Actions .Redo ,
160
- Prompt : fmt .Sprintf (self .c .Tr .HardResetAutostashPrompt , action .to ),
160
+ Prompt : fmt .Sprintf (self .c .Tr .HardResetAutostashPrompt , utils . ShortHash ( action .to ) ),
161
161
HandleConfirm : func () error {
162
162
self .c .LogAction (self .c .Tr .Actions .Redo )
163
163
return self .hardResetWithAutoStash (action .to , hardResetOptions {
0 commit comments