@@ -236,65 +236,65 @@ format characters are recognized:
236
236
237
237
(defface stgit-branch-name-face
238
238
'((t :inherit bold ))
239
- " The face used for the StGit branch name"
239
+ " The face used for the StGit branch name. "
240
240
:group 'stgit-faces )
241
241
242
242
(defface stgit-top-patch-face
243
243
'((((background dark )) (:weight bold :foreground " yellow" ))
244
244
(((background light )) (:weight bold :foreground " purple" ))
245
245
(t (:weight bold )))
246
- " The face used for the top patch names"
246
+ " The face used for the top patch names. "
247
247
:group 'stgit-faces )
248
248
249
249
(defface stgit-applied-patch-face
250
250
'((((background dark )) (:foreground " light yellow" ))
251
251
(((background light )) (:foreground " purple" ))
252
252
(t ()))
253
- " The face used for applied patch names"
253
+ " The face used for applied patch names. "
254
254
:group 'stgit-faces )
255
255
256
256
(defface stgit-unapplied-patch-face
257
257
'((((background dark )) (:foreground " gray80" ))
258
258
(((background light )) (:foreground " orchid" ))
259
259
(t ()))
260
- " The face used for unapplied patch names"
260
+ " The face used for unapplied patch names. "
261
261
:group 'stgit-faces )
262
262
263
263
(defface stgit-committed-patch-face
264
264
'((((background dark )) (:foreground " gray50" ))
265
265
(((background light )) (:foreground " gray50" ))
266
266
(t ()))
267
- " The face used for already committed patch names"
267
+ " The face used for already committed patch names. "
268
268
:group 'stgit-faces )
269
269
270
270
(defface stgit-description-face
271
271
'((((background dark )) (:foreground " tan" ))
272
272
(((background light )) (:foreground " dark red" )))
273
- " The face used for StGit descriptions"
273
+ " The face used for StGit descriptions. "
274
274
:group 'stgit-faces )
275
275
276
276
(defface stgit-index-work-tree-title-face
277
277
'((((supports :slant italic )) :slant italic )
278
278
(t :inherit bold ))
279
- " StGit mode face used for the \" Index\" and \" Work tree\" titles"
279
+ " StGit mode face used for the \" Index\" and \" Work tree\" titles. "
280
280
:group 'stgit-faces )
281
281
282
282
(defface stgit-unmerged-file-face
283
283
'((((class color ) (background light )) (:foreground " red" :bold t ))
284
284
(((class color ) (background dark )) (:foreground " red" :bold t )))
285
- " StGit mode face used for unmerged file status"
285
+ " StGit mode face used for unmerged file status. "
286
286
:group 'stgit-faces )
287
287
288
288
(defface stgit-unknown-file-face
289
289
'((((class color ) (background light )) (:foreground " goldenrod" :bold t ))
290
290
(((class color ) (background dark )) (:foreground " goldenrod" :bold t )))
291
- " StGit mode face used for unknown file status"
291
+ " StGit mode face used for unknown file status. "
292
292
:group 'stgit-faces )
293
293
294
294
(defface stgit-ignored-file-face
295
295
'((((class color ) (background light )) (:foreground " grey60" ))
296
296
(((class color ) (background dark )) (:foreground " grey40" )))
297
- " StGit mode face used for ignored files" )
297
+ " StGit mode face used for ignored files. " )
298
298
299
299
(defface stgit-file-permission-face
300
300
'((((class color ) (background light )) (:foreground " green" :bold t ))
@@ -305,7 +305,7 @@ format characters are recognized:
305
305
(defface stgit-modified-file-face
306
306
'((((class color ) (background light )) (:foreground " purple" ))
307
307
(((class color ) (background dark )) (:foreground " salmon" )))
308
- " StGit mode face used for modified file status"
308
+ " StGit mode face used for modified file status. "
309
309
:group 'stgit-faces )
310
310
311
311
(defun stgit (dir )
@@ -484,7 +484,7 @@ necessary and no message will be shown if MESSAGE is nil.
484
484
485
485
If `stgit-inhibit-messages' is non-nil, messages are
486
486
suppressed. See also `stgit-message' . If MESSAGE is non-nil, BODY
487
- will be executed with `stgit-inhibit-messages' set to `t' .
487
+ will be executed with `stgit-inhibit-messages' set to t .
488
488
489
489
Returns the return value of BODY."
490
490
(declare (indent 1 ) (debug (form body)))
@@ -586,8 +586,8 @@ default) that can be used to restore the point using
586
586
column)))))
587
587
588
588
(defun stgit-get-window-state ()
589
- " Return the state of the buffer and its windows. Use
590
- `stgit-restore-window-state' to restore the state."
589
+ " Return the state of the buffer and its windows.
590
+ Use `stgit-restore-window-state' to restore the state."
591
591
(list (current-buffer )
592
592
(mapcar (lambda (window )
593
593
(cons window
@@ -800,7 +800,7 @@ during the operation."
800
800
(unmerged " Unmerged" stgit-unmerged-file-face)
801
801
(unknown " Unknown" stgit-unknown-file-face)
802
802
(ignore " Ignored" stgit-ignored-file-face)))
803
- " Alist of code symbols to description strings" )
803
+ " Alist of code symbols to description strings. " )
804
804
805
805
(defconst stgit-patch-status-face-alist
806
806
'((applied . stgit-applied-patch-face)
@@ -809,10 +809,10 @@ during the operation."
809
809
(committed . stgit-committed-patch-face)
810
810
(index . stgit-index-work-tree-title-face)
811
811
(work . stgit-index-work-tree-title-face))
812
- " Alist of face to use for a given patch status" )
812
+ " Alist of face to use for a given patch status. " )
813
813
814
814
(defun stgit-file-status-code-as-string (file )
815
- " Return stgit status code for FILE as a string"
815
+ " Return stgit status code for FILE as a string. "
816
816
(let* ((code (assq (stgit-file->status file)
817
817
stgit-file-status-code-strings))
818
818
(score (stgit-file->cr-score file)))
@@ -824,7 +824,7 @@ during the operation."
824
824
(cdr code)))))
825
825
826
826
(defun stgit-file-status-code (str &optional score )
827
- " Return stgit status code from git status string"
827
+ " Return stgit status code from git status string. "
828
828
(let ((code (assoc str '((" A" . add)
829
829
(" C" . copy)
830
830
(" D" . delete)
@@ -845,7 +845,7 @@ during the operation."
845
845
'((#o100 . " file" )
846
846
(#o120 . " symlink" )
847
847
(#o160 . " subproject" ))
848
- " Alist of names of file types" )
848
+ " Alist of names of file types. " )
849
849
850
850
(defun stgit-file-type-string (type )
851
851
" Return string describing file type TYPE (the high bits of file permission).
@@ -1104,7 +1104,7 @@ at point."
1104
1104
" "
1105
1105
(stgit-id patchsym))
1106
1106
" :" file)))
1107
- (error " git cat-file failed " ))))
1107
+ (error " Command ' git cat-file' failed" ))))
1108
1108
(funcall (if other-window
1109
1109
'switch-to-buffer-other-window
1110
1110
'switch-to-buffer )
@@ -1210,7 +1210,7 @@ See also `stgit-expand'."
1210
1210
(defun stgit-select ()
1211
1211
" With point on a patch, toggle showing files in the patch.
1212
1212
1213
- With point on a file, open the associated file. Opens the target
1213
+ With point on a file, open the associated file. Opens the target
1214
1214
file for (applied) copies and renames."
1215
1215
(interactive )
1216
1216
(stgit-assert-mode)
@@ -1257,21 +1257,21 @@ With prefix argument, open a buffer with that revision of the file."
1257
1257
(git-status dir))))
1258
1258
1259
1259
(defun stgit-goal-column ()
1260
- " Return goal column for the current line"
1260
+ " Return goal column for the current line. "
1261
1261
(case (get-text-property (point ) 'entry-type )
1262
1262
('patch 2 )
1263
1263
('file 4 )
1264
1264
(t 0 )))
1265
1265
1266
1266
(defun stgit-next-line (&optional arg )
1267
- " Move cursor vertically down ARG lines"
1267
+ " Move cursor vertically down ARG lines. "
1268
1268
(interactive " p" )
1269
1269
(stgit-assert-mode)
1270
1270
(next-line arg)
1271
1271
(move-to-column (stgit-goal-column)))
1272
1272
1273
1273
(defun stgit-previous-line (&optional arg )
1274
- " Move cursor vertically up ARG lines"
1274
+ " Move cursor vertically up ARG lines. "
1275
1275
(interactive " p" )
1276
1276
(stgit-assert-mode)
1277
1277
(previous-line arg)
@@ -1317,7 +1317,7 @@ With prefix argument, open a buffer with that revision of the file."
1317
1317
(defun stgit-previous-patch-group (&optional arg )
1318
1318
" Move to the previous group of patches.
1319
1319
1320
- If ARG is non-nil, do this ARG times. If ARG is negative, move
1320
+ If ARG is non-nil, do this ARG times. If ARG is negative, move
1321
1321
-ARG groups forward instead; cf. `stgit-next-patch-group' ."
1322
1322
(interactive " p" )
1323
1323
(stgit-assert-mode)
@@ -1341,7 +1341,7 @@ If ARG is non-nil, do this ARG times. If ARG is negative, move
1341
1341
(defun stgit-next-patch-group (&optional arg )
1342
1342
" Move to the next group of patches.
1343
1343
1344
- If ARG is non-nil, do this ARG times. If ARG is negative, move
1344
+ If ARG is non-nil, do this ARG times. If ARG is negative, move
1345
1345
-ARG groups backwards instead; cf. `stgit-previous-patch-group' ."
1346
1346
(interactive " p" )
1347
1347
(stgit-assert-mode)
@@ -1732,7 +1732,7 @@ refresh the stgit buffers as the git status of files change."
1732
1732
1733
1733
(defvar stgit-pending-refresh-buffers nil
1734
1734
" Alist of (`buffer' . `mode' ) of buffers that need to be
1735
- refreshed. See `stgit-post-refresh' for the different values of
1735
+ refreshed. See `stgit-post-refresh' for the different values of
1736
1736
`mode' ." )
1737
1737
1738
1738
(defun stgit-run-pending-refreshs ()
@@ -1782,7 +1782,7 @@ MODE specifies what to do:
1782
1782
" When Emacs becomes idle, update the status in any `stgit-mode'
1783
1783
buffer that shows the status of the current buffer.
1784
1784
1785
- MODE specifies how to update the buffer. See `stgit-post-refresh'
1785
+ MODE specifies how to update the buffer. See `stgit-post-refresh'
1786
1786
for the different values MODE can have."
1787
1787
(let* ((dir (cond ((derived-mode-p 'stgit-mode 'stgit-status-mode 'dired-mode )
1788
1788
default-directory)
@@ -1887,7 +1887,7 @@ line of PATCHSYM and return :patch."
1887
1887
(stgit-assert-mode)
1888
1888
(unless (zerop (stgit-capture-output nil
1889
1889
(stgit-run " init" )))
1890
- (error " stg init failed " ))
1890
+ (error " Command ' stg init' failed" ))
1891
1891
(stgit-reload))
1892
1892
1893
1893
(defun stgit-toggle-mark ()
@@ -2078,8 +2078,8 @@ git-config setting branch.<branch>.stgit.parentbranch."
2078
2078
(defun stgit-rebase (new-base )
2079
2079
" Rebase the current branch to NEW-BASE.
2080
2080
2081
- Interactively, first ask which branch to rebase to. Defaults to
2082
- what git-config branch.<branch>.stgit.parentbranch is set to."
2081
+ Interactively, first ask which branch to rebase to. Defaults to what
2082
+ git-config branch.<branch>.stgit.parentbranch is set to."
2083
2083
(interactive (list (completing-read " Rebase to: "
2084
2084
(stgit-available-refs t )
2085
2085
nil nil
@@ -2342,7 +2342,7 @@ or :bottom."
2342
2342
(defun stgit-goto ()
2343
2343
" Go to the patch on the current line.
2344
2344
2345
- Push or pop patches to make this patch topmost. Push or pop all
2345
+ Push or pop patches to make this patch topmost. Push or pop all
2346
2346
patches if used on a line after or before all patches."
2347
2347
(interactive )
2348
2348
(stgit-assert-mode)
@@ -2463,9 +2463,9 @@ greater than four (e.g., \\[universal-argument] \
2463
2463
(defun stgit-diff-range (&optional ignore-whitespace )
2464
2464
" Show diff for the range of patches between point and the marked patch.
2465
2465
2466
- With a prefix argument, ignore whitespace. With a prefix argument
2467
- greater than four (e.g., \\ [universal-argument] \
2468
- \\ [universal-argument] \\ [ stgit-diff-range]), ignore all whitespace."
2466
+ With a prefix argument, ignore whitespace. With a prefix argument
2467
+ greater than four (e.g., \\ [universal-argument] \ \\ [universal-argument]
2468
+ \\ [stgit-diff-range]), ignore all whitespace."
2469
2469
(interactive " p" )
2470
2470
(stgit-assert-mode)
2471
2471
(unless (= (length stgit-marked-patches) 1 )
@@ -2503,7 +2503,7 @@ If FORCE is not nil, use --force."
2503
2503
'(" --" ) (list file))))))
2504
2504
2505
2505
(defun stgit-remove-change-from-index (file )
2506
- " Unstages the change in FILE from the index"
2506
+ " Unstages the change in FILE from the index. "
2507
2507
(stgit-capture-output " *git output*"
2508
2508
(stgit-run-git " reset" " -q" " --" file)))
2509
2509
@@ -2525,7 +2525,7 @@ If FORCE is not nil, use --force."
2525
2525
" Move modified file in or out of the index.
2526
2526
2527
2527
Leaves the point where it is, but moves the mark to where the
2528
- file ended up. You can then jump to the file with \
2528
+ file ended up. You can then jump to the file with \
2529
2529
\\ [exchange-point-and-mark]."
2530
2530
(interactive )
2531
2531
(stgit-assert-mode)
@@ -2564,7 +2564,7 @@ file ended up. You can then jump to the file with \
2564
2564
Works on index and work tree, as well as files in either.
2565
2565
2566
2566
Leaves the point where it is, but moves the mark to where the
2567
- file ended up. You can then jump to the file with \
2567
+ file ended up. You can then jump to the file with \
2568
2568
\\ [exchange-point-and-mark]."
2569
2569
(interactive )
2570
2570
(stgit-assert-mode)
@@ -2620,8 +2620,7 @@ file ended up. You can then jump to the file with \
2620
2620
(stgit-reload))))
2621
2621
2622
2622
(defun stgit-new-here (add-sign )
2623
- " Create a new patch before the patch at point, asking for a
2624
- commit message.
2623
+ " Create a new patch before the patch at point, asking for a commit message.
2625
2624
2626
2625
With a prefix argument, include a \" Signed-off-by:\" line at the
2627
2626
end of the patch description.
@@ -2697,7 +2696,7 @@ This works just like running `stgit-new' followed by `stgit-refresh'."
2697
2696
(stgit-new add-sign t ))
2698
2697
2699
2698
(defun stgit-create-patch-name (description )
2700
- " Create a patch name from a long description"
2699
+ " Create a patch name from a long description. "
2701
2700
(let ((patch " " ))
2702
2701
(while (> (length description) 0 )
2703
2702
(cond ((string-match " \\ `[a-zA-Z_-]+" description)
@@ -2846,7 +2845,7 @@ deepest patch had before the squash."
2846
2845
(rename-buffer " *StGit error*" )
2847
2846
(resize-temp-buffer-window )
2848
2847
(switch-to-buffer-other-window stgit-buffer)
2849
- (error " stg squash failed " )))))
2848
+ (error " Command ' stg squash' failed" )))))
2850
2849
2851
2850
(defun stgit-confirm-squash ()
2852
2851
(interactive )
@@ -2955,7 +2954,7 @@ If HARD is non-nil, use the --hard flag."
2955
2954
(if arg
2956
2955
(when (or (and (stgit-index-empty-p)
2957
2956
(stgit-work-tree-empty-p))
2958
- (y-or-n-p (format " Hard %s may overwrite index/work tree changes. Continue? "
2957
+ (y-or-n-p (format " Hard %s may overwrite index/work tree changes. Continue? "
2959
2958
cmd)))
2960
2959
(stgit-run cmd " --hard" ))
2961
2960
(stgit-run cmd))))
0 commit comments