-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagit.elc
486 lines (475 loc) · 125 KB
/
magit.elc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
;ELC
;;; Compiled by [email protected] on Tue Oct 27 23:31:17 2009
;;; from file /Volumes/Files/Downloads/New files/magit-0.7/magit.el
;;; in Emacs version 22.1.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`magit.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\306\307\310\311\312\313\314\315&\207" [require cl parse-time log-edit easymenu diff-mode custom-declare-group magit nil "Controlling Git from Emacs." :prefix "magit-" :group tools] 8)
#@33 The name of the Git executable.
(custom-declare-variable 'magit-git-executable '"git" '(#$ . 843) :group 'magit :type 'string)
#@36 Standard options when running Git.
(custom-declare-variable 'magit-git-standard-options ''("--no-pager") '(#$ . 976) :group 'magit :type '(repeat string))
#@199 Non-nil means that \[magit-status] will save modified buffers before running.
Setting this to t will ask which buffers to save, setting it to 'dontask will
save all modified buffers without asking.
(custom-declare-variable 'magit-save-some-buffers 't '(#$ . 1138) :group 'magit :type '(choice (const :tag "Never" nil) (const :tag "Ask" t) (const :tag "Save without asking" dontask)))
#@367 Determines what \[magit-log-edit] does when nothing is staged.
Setting this to nil will make it do nothing, setting it to t will arrange things so that the actual commit command will use the "--all" option, setting it to 'ask will first ask for confirmation whether to do this, and setting it to 'ask-stage will cause all changes to be staged, after a confirmation.
(custom-declare-variable 'magit-commit-all-when-nothing-staged ''ask '(#$ . 1529) :group 'magit :type '(choice (const :tag "No" nil) (const :tag "Always" t) (const :tag "Ask" ask) (const :tag "Ask to stage everything" ask-stage)))
#@43 When performing git commit adds --signoff
(custom-declare-variable 'magit-commit-signoff 'nil '(#$ . 2132) :group 'magit :type 'boolean)
#@70 The maximum number of commits to show in the log and whazzup buffers
(custom-declare-variable 'magit-log-cutoff-length '100 '(#$ . 2275) :group 'magit :type 'integer)
#@76 Popup the process buffer if a command takes longer than this many seconds.
(custom-declare-variable 'magit-process-popup-time '-1 '(#$ . 2448) :group 'magit :type '(choice (const :tag "Never" -1) (const :tag "Immediately" 0) (integer :tag "After this many seconds")))
#@64 Require acknowledgement before cancelling the log edit buffer.
(custom-declare-variable 'magit-log-edit-confirm-cancellation 'nil '(#$ . 2722) :group 'magit :type 'boolean)(if macro-declaration-function (funcall macro-declaration-function (quote magit-with-refresh) (quote (declare (indent 0)))))
(byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\210\300\311\312\313\304\305%\210\300\314\315\316\304\305%\210\300\317\320\321\304\305%\210\300\322\323\324\304\305%\210\300\325\326\327\304\305%\210\300\330\331\332\304\305%\210\300\333\334\335\304\305%\210\300\336\337\340\304\305%\210\300\341\342\343\304\305%\210\300\344\345\346\304\305%\207" [custom-declare-face magit-header ((t)) "Face for generic header lines.\n\nMany Magit faces inherit from this one by default." :group magit magit-section-title ((t :weight bold :inherit magit-header)) "Face for section titles." magit-branch ((t :weight bold :inherit magit-header)) "Face for the current branch." magit-diff-file-header ((t :inherit magit-header)) "Face for diff file header lines." magit-diff-hunk-header ((t :slant italic :inherit magit-header)) "Face for diff hunk header lines." magit-diff-add ((((class color) (background light)) :foreground "blue1") (((class color) (background dark)) :foreground "white")) "Face for lines in a diff that have been added." magit-diff-none ((t)) "Face for lines in a diff that are unchanged." magit-diff-del ((((class color) (background light)) :foreground "red") (((class color) (background dark)) :foreground "OrangeRed")) "Face for lines in a diff that have been deleted." magit-item-highlight ((((class color) (background light)) :background "gray95") (((class color) (background dark)) :background "dim gray")) "Face for highlighting the current item." magit-item-mark ((((class color) (background light)) :foreground "red") (((class color) (background dark)) :foreground "orange")) "Face for highlighting marked item." magit-log-tag-label ((((class color) (background light)) :background "LightGoldenRod") (((class color) (background dark)) :background "DarkGoldenRod")) "Face for git tag labels shown in log buffer." magit-log-head-label ((((class color) (background light)) :background "spring green") (((class color) (background dark)) :background "DarkGreen")) "Face for branch head labels shown in log buffer."] 6)
(defalias 'magit-with-refresh '(macro . #[(&rest body) "\301\302\303BBD\207" [body magit-refresh-wrapper lambda nil] 4]))
(defalias 'magit-use-region-p #[nil "\302\303!\203 \303 \207\205 \207" [transient-mark-mode mark-active fboundp use-region-p] 2])
(defalias 'magit-goto-line #[(line) "\214~\210\301b\210Sy)\207" [line 1] 1])
(defalias 'magit-format-shell-command #[(fmt args) "\302\303\304\305 \"#\207" [fmt args apply format mapcar magit-escape-for-shell] 6])
(defalias 'magit-format-git-command #[(fmt args) "\304\305\306\307 B\"\"\305\310\n\"Q\207" [magit-git-executable magit-git-standard-options fmt args magit-concat-with-delim " " mapcar magit-escape-for-shell magit-format-shell-command] 6])
(defalias 'magit-shell-lines #[(command) "\303!\211\304\230?\205 \305 \306\"\237\211@\304\230\203 \nA\n\237))\207" [command str lines magit-shell-command-to-string "" split-string "\n"] 4])
(defalias 'magit-shell-command-to-string #[(command) "\304\305\306!!\211rq\210\307 \310\311\310\n&\210*rq\210\312 \313\310!\210*\207" [standard-output shell-file-name shell-command-switch command get-buffer-create generate-new-buffer-name " *string-output*" process-file nil t buffer-string kill-buffer] 8])
(defalias 'magit-shell #[(command) "\302!\211\303\230?\205 \211GS\234\304\232\203 \305 GSO\202 )\207" [command str magit-shell-command-to-string "" 10 0] 4])
(defalias 'magit-git-lines #[(fmt &rest args) "\302\303 \"!\207" [fmt args magit-shell-lines magit-format-git-command] 4])
(defalias 'magit-git-string #[(fmt &rest args) "\302\303 \"!\207" [fmt args magit-shell magit-format-git-command] 4])
(defalias 'magit-git-exit-code #[(fmt &rest args) "\304\305\211\211 \306\n\"&\207" [shell-file-name shell-command-switch fmt args call-process nil magit-format-git-command] 9])
(defalias 'magit-file-lines #[(file) "\303!\205* \304\305!\306\216r q\210\307!\210\310\311 \312\"\237\211@\313\232\203'