commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(require 'magit) |
|
16 |
#@58 Popup console for worktree commands. |
|
17 |
|
|
18 |
(fn &optional ARG) |
|
19 |
(defalias 'magit-worktree-popup #[256 "\300\301\302#\207" [magit-invoke-popup magit-worktree-popup nil] 5 (#$ . 425) "P"]) |
|
20 |
(defvar magit-worktree-popup (byte-code "\300\301\302\303\304\305\306\307\310\311\312\313#?\205 \314\315\"BB\316\317\257\207" [:variable magit-worktree-arguments :man-page "git-worktree" :actions (98 "Create new worktree" magit-worktree-checkout) (99 "Create new branch and worktree" magit-worktree-branch) append require forge nil t ((112 "Create new worktree from pull-request" magit-worktree-checkout-pull-request)) ((107 "Delete worktree" magit-worktree-delete) (103 "Show status for worktree" magit-worktree-status)) :max-action-columns 1] 12)) |
|
21 |
(byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313&\207" [magit-define-popup-keys-deferred magit-worktree-popup custom-declare-variable magit-worktree-arguments funcall function #[0 "\301\302\"\207" [magit-worktree-popup plist-get :default-arguments] 3] "" :group magit-git-arguments :type (repeat (string :tag "Argument"))] 8) |
|
22 |
(defalias 'magit-worktree-arguments #[0 "\303=\203 \207\n\207" [magit-current-popup magit-current-popup-args magit-worktree-arguments magit-worktree-popup] 2]) |
|
23 |
(put 'magit-worktree-arguments 'definition-name 'magit-worktree-popup) |
|
24 |
#@62 Checkout BRANCH in a new worktree at PATH. |
|
25 |
|
|
26 |
(fn PATH BRANCH) |
|
27 |
(defalias 'magit-worktree-checkout #[514 "\300\301\302\303!$\210\304!\207" [magit-run-git "worktree" "add" expand-file-name magit-diff-visit-directory] 7 (#$ . 1745) (byte-code "\300\301!\302\303\304\"!D\207" [magit-read-local-branch-or-commit "Checkout" read-directory-name format "Checkout %s in new worktree: "] 5)]) |
|
28 |
#@214 Create, configure and checkout a new worktree from a pull-request. |
|
29 |
This is like `magit-checkout-pull-request', except that it |
|
30 |
also creates a new worktree. Please see the manual for more |
|
31 |
information. |
|
32 |
|
|
33 |
(fn PATH PR) |
|
34 |
(defalias 'magit-worktree-checkout-pull-request #[514 "\301!\203 \302!\203 \303\304!G\305U\204 \306\307\"\210\310\311\312!)\"\207" [inhibit-magit-refresh file-exists-p file-directory-p directory-files "/tmp/testing/" 2 user-error "%s already exists and isn't empty" magit-worktree-checkout t magit-branch-pull-request] 6 (#$ . 2138) (byte-code "\302\303!\211\304\236A\305\306\236A\236A\307\310\"\311\312\313#\314\315!!\316\211\317\316\310\320#)\266\203\2038 \321!\202? \312\322 #%\262\211\323\232\203L \324\325!\210\211D\262\266\202\262\207" [default-directory inhibit-changing-match-data magit-read-pull-request "Checkout pull request" number ref head magit--pullreq-branch t read-directory-name format "Checkout #%s as `%s' in new worktree: " file-name-directory directory-file-name nil "\\`pr-[0-9]+\\'" string-match number-to-string "%s-%s" "" user-error "The empty string isn't a valid path"] 17)]) |
|
35 |
#@111 Create a new BRANCH and check it out in a new worktree at PATH. |
|
36 |
|
|
37 |
(fn PATH BRANCH START-POINT &optional FORCE) |
|
38 |
(defalias 'magit-worktree-branch #[1027 "\300\301\302\203 \303\202\f \304\305 !&\210\306!\207" [magit-run-git "worktree" "add" "-B" "-b" expand-file-name magit-diff-visit-directory] 11 (#$ . 3292) (byte-code "\301\302!\303\304\305\306!!C\"B\207" [current-prefix-arg read-directory-name "Create worktree: " append butlast magit-branch-read-args "Create and checkout branch"] 5)]) |
|
39 |
#@112 Delete a worktree, defaulting to the worktree at point. |
|
40 |
The primary worktree cannot be deleted. |
|
41 |
|
|
42 |
(fn WORKTREE) |
|
43 |
(defalias 'magit-worktree-delete #[257 "\303\304\305\"!\203 \306\307\"\207\310\311 @@!\312\203 \313\202 \314\315C\"\210\316!\2031 \317\320#\210)\316\n!\203> |