@@ -1007,7 +1007,7 @@ If NO-QUOTES is non-nil, do not enclose the result in double quotes."
1007
1007
(insert " :0 0 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 " file-flag " \0 " )
1008
1008
(forward-char name-len)))))
1009
1009
1010
- (defun stgit-process-files (callback )
1010
+ (defun stgit-process-files (patch callback )
1011
1011
(goto-char (point-min ))
1012
1012
(when (looking-at " [0-9A-Fa-f]\\ {40\\ }\0 " )
1013
1013
(goto-char (match-end 0 )))
@@ -1018,7 +1018,6 @@ If NO-QUOTES is non-nil, do not enclose the result in double quotes."
1018
1018
(let ((file
1019
1019
(cond ((looking-at
1020
1020
" \\ ([CR]\\ )\\ ([0-9]*\\ )\0 \\ ([^\0 ]*\\ )\0 \\ ([^\0 ]*\\ )\0 " )
1021
- ; ; TODO: Where does `patch' come from?
1022
1021
(let* ((patch-status (stgit-patch->status patch))
1023
1022
(file-subexp (if (eq patch-status 'unapplied )
1024
1023
3
@@ -1082,7 +1081,7 @@ at point."
1082
1081
(sort-regexp-fields nil " :[^\0 ]*\0 \\ ([^\0 ]*\\ )\0 " " \\ 1"
1083
1082
(point-min ) (point-max )))
1084
1083
1085
- (stgit-process-files (lambda (file ) (ewoc-enter-last ewoc file)))
1084
+ (stgit-process-files patch (lambda (file ) (ewoc-enter-last ewoc file)))
1086
1085
1087
1086
(unless (ewoc-nth ewoc 0 )
1088
1087
(ewoc-set-hf ewoc " "
@@ -1192,7 +1191,8 @@ See also `stgit-expand'."
1192
1191
" --no-empty-directory" " --"
1193
1192
filename)
1194
1193
" X" )
1195
- (stgit-process-files (lambda (f )
1194
+ (stgit-process-files patch
1195
+ (lambda (f )
1196
1196
(setq node (ewoc-enter-after ewoc node f))))))
1197
1197
1198
1198
(move-to-column (stgit-goal-column))
0 commit comments