mirror of https://github.com/Chizi123/.emacs.d.git

Chizi123
2018-11-17 c4001ccd1864293b64aa37d83a9d9457eb875e70
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
;ELC
;;; Compiled
;;; in Emacs version 26.1
;;; with all optimizations.
 
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
 
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 
(byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313\314\315&    \207" [require magit custom-declare-variable magit-push-current-set-remote-if-missing funcall function #[0 "\300\207" [t] 1] "Whether to configure missing remotes before pushing.\n\nWhen nil, then the command `magit-push-current-to-pushremote' and\n`magit-push-current-to-upstream' do not appear in the push popup\nif the push-remote resp. upstream is not configured.  If the user\ninvokes one of these commands anyway, then it raises an error.\n\nWhen non-nil, then these commands always appear in the push\npopup.  But if the required configuration is missing, then they\ndo appear in a way that indicates that this is the case.  If the\nuser invokes one of them, then it asks for the necessary\nconfiguration, stores the configuration, and then uses it to push\na first time.\n\nThis option also affects whether the argument `--set-upstream' is\navailable in the popup.  If the value is t, then that argument is\nredundant.  But note that changing the value of this option does\nnot take affect immediately, the argument will only be added or\nremoved after restarting Emacs." :package-version (magit . "2.6.0") :group magit-commands :type (choice (const :tag "don't set" nil) (const :tag "set branch.<name>.pushRemote" t) (const :tag "set remote.pushDefault" default))] 10)
#@54 Popup console for push commands.
 
(fn &optional ARG)
(defalias 'magit-push-popup #[256 "\300\301\302#\207" [magit-invoke-popup magit-push-popup nil] 5 (#$ . 1763) "P"])
(defvar magit-push-popup (byte-code "\301\302\303\304\305\306\307\310\311?\205\312BBBB\313\314\315\316\257\n\207" [magit-push-current-set-remote-if-missing :variable magit-push-arguments :man-page "git-push" :switches (102 "Force with lease" "--force-with-lease") (70 "Force" "--force") (104 "Disable hooks" "--no-verify") (100 "Dry run" "--dry-run") ((117 "Set upstream" "--set-upstream")) :actions ("Configure" (67 "variables..." magit-branch-config-popup) (lambda nil (--when-let (magit-get-current-branch) (concat (propertize "Push " 'face 'magit-popup-heading) (propertize it 'face 'magit-branch-local) (propertize " to" 'face 'magit-popup-heading)))) (112 magit--push-current-to-pushremote-desc magit-push-current-to-pushremote) (117 magit--push-current-to-upstream-desc magit-push-current-to-upstream) (101 "elsewhere\n" magit-push-current) "Push" (111 "another branch" magit-push-other) (84 "a tag" magit-push-tag) (114 "explicit refspecs" magit-push-refspecs) (116 "all tags" magit-push-tags) (109 "matching branches" magit-push-matching)) :max-action-columns 2] 10))
(byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313&\207" [magit-define-popup-keys-deferred magit-push-popup custom-declare-variable magit-push-arguments funcall function #[0 "\301\302\"\207" [magit-push-popup plist-get :default-arguments] 3] "" :group magit-git-arguments :type (repeat (string :tag "Argument"))] 8)
(defalias 'magit-push-arguments #[0 "\303=\203    \207\n\207" [magit-current-popup magit-current-popup-args magit-push-arguments magit-push-popup] 2])
(put 'magit-push-arguments 'definition-name 'magit-push-popup)
#@27 
 
(fn BRANCH TARGET ARGS)
(defalias 'magit-git-push #[771 "\300\301!\210\302!\211@A\211\303\304\305\306\307    #%\266\202\207" [run-hooks magit-credential-hook magit-split-branch-name magit-run-git-async "push" "-v" format "%s:refs/heads/%s"] 17 (#$ . 3568)])
#@396 Push the current branch to `branch.<name>.pushRemote'.
If that variable is unset, then push to `remote.pushDefault'.
 
When `magit-push-current-set-remote-if-missing' is non-nil and
the push-remote is not configured, then read the push-remote from
the user, set it, and then push to it.  With a prefix argument
the push-remote can be changed before pushed to it.
 
(fn ARGS &optional PUSH-REMOTE)
(defalias 'magit-push-current-to-pushremote #[513 "\301 \211\203H\203\302=\203\303\202\304\305\"\306\"\266\307!\211\203?\211\310 \235\2038\311\312Q#\202C\313\314\"\202C\313\315\"\262\202K\313\316!\207" [magit-push-current-set-remote-if-missing magit-get-current-branch default "remote.pushDefault" format "branch.%s.pushRemote" magit-set magit-get-push-remote magit-list-remotes magit-git-push "/" user-error "Remote `%s' doesn't exist" "No push-remote is configured for %s" "No branch is checked out"] 9 (#$ . 3841) (byte-code "\302 \303!\205\304    \305=\203\306\202\307\310\311 \"!D\207" [current-prefix-arg magit-push-current-set-remote-if-missing magit-push-arguments magit--push-current-set-pushremote-p magit-read-remote default "Set `remote.pushDefault' and push there" format "Set `branch.%s.pushRemote' and push there" magit-get-current-branch] 5)])
#@25 
 
(fn &optional CHANGE)
(defalias 'magit--push-current-set-pushremote-p #[256 "\211\204\205\301 ?\205\302 \207" [magit-push-current-set-remote-if-missing magit-get-push-remote magit-get-current-branch] 2 (#$ . 5133)])
(defalias 'magit--push-current-to-pushremote-desc #[0 "\301 \211\203\302!\303P\202$\304 \205$\305\306=\203\307\202\310\311\312#\313P\207" [magit-push-current-set-remote-if-missing magit-get-push-branch magit-branch-set-face "\n" magit--push-current-set-pushremote-p propertize default "pushDefault" "pushRemote" face bold ", after setting that\n"] 5])
#@315 Push the current branch to its upstream branch.
 
When `magit-push-current-set-remote-if-missing' is non-nil and
the upstream is not configured, then read the upstream from the
user, set it, and then push to it.  With a prefix argument the
upstream can be changed before pushed to it.
 
(fn ARGS &optional UPSTREAM)
(defalias 'magit-push-current-to-upstream #[513 "\300 \211\203(\203\301\"\210\302!\211\203\303#\202#\304\305\"\262\202+\304\306!\207" [magit-get-current-branch magit-set-upstream-branch magit-get-upstream-branch magit-git-push user-error "No upstream is configured for %s" "No branch is checked out"] 8 (#$ . 5727) (byte-code "\301 \302!\205\n\303 D\207" [current-prefix-arg magit-push-arguments magit--push-current-set-upstream-p magit-read-upstream-branch] 3)])
#@25 
 
(fn &optional CHANGE)
(defalias 'magit--push-current-set-upstream-p #[256 "\211\204\205\301 ?\205\302 \207" [magit-push-current-set-remote-if-missing magit-get-upstream-branch magit-get-current-branch] 2 (#$ . 6530)])
(defalias 'magit--push-current-to-upstream-desc #[0 "\300 \211\203\301!\302P\202\303 \205\304\305\306\307#\310P\207" [magit-get-upstream-branch magit-branch-set-face "\n" magit--push-current-set-upstream-p propertize "@{upstream}" face bold ", after setting that\n"] 5])
#@79 Push the current branch to a branch read in the minibuffer.
 
(fn TARGET ARGS)
(defalias 'magit-push-current #[514 "\300\301 #\207" [magit-git-push magit-get-current-branch] 6 (#$ . 7041) (byte-code "\300 \211\203\301\302\303\"\304\211\305%\306 D\202\307\310!\207" [magit-get-current-branch magit-read-remote-branch format "Push %s to" nil confirm magit-push-arguments user-error "No branch is checked out"] 7)])
#@131 Push an arbitrary branch or commit somewhere.
Both the source and the target are read in the minibuffer.
 
(fn SOURCE TARGET ARGS)
(defalias 'magit-push-other #[771 "\300#\207" [magit-git-push] 7 (#$ . 7468) (byte-code "\300\301!\211\302\303\304\"\305\306!\203\307!\206*\310!\202*\311\312\"\205*\307 \206*\310 \313%\314 E\207" [magit-read-local-branch-or-commit "Push" magit-read-remote-branch format "Push %s to" nil magit-local-branch-p magit-get-push-branch magit-get-upstream-branch magit-rev-ancestor-p "HEAD" confirm magit-push-arguments] 8)])
(defvar magit-push-refspecs-history nil)
#@273 Push one or multiple REFSPECS to a REMOTE.
Both the REMOTE and the REFSPECS are read in the minibuffer.  To
use multiple REFSPECS, separate them with commas.  Completion is
only available for the part before the colon, or when no colon
is used.
 
(fn REMOTE REFSPECS ARGS)
(defalias 'magit-push-refspecs #[771 "\300\301!\210\302\303\304%\207" [run-hooks magit-credential-hook magit-run-git-async "push" "-v"] 9 (#$ . 8080) (byte-code "\301\302!\303\304\305\306\307 B\310\211\311%\312#\313 E\207" [crm-default-separator magit-read-remote "Push to remote" split-string magit-completing-read-multiple "Push refspec,s" "HEAD" magit-list-local-branch-names nil magit-push-refspecs-history t magit-push-arguments] 8)])
#@196 Push all matching branches to another repository.
If multiple remotes exist, then read one from the user.
If just one exists, use that without requiring confirmation.
 
(fn REMOTE &optional ARGS)
(defalias 'magit-push-matching #[513 "\300\301!\210\302\303\304\305%\207" [run-hooks magit-credential-hook magit-run-git-async "push" "-v" ":"] 8 (#$ . 8805) (byte-code "\300\301\302\303#\304 D\207" [magit-read-remote "Push matching branches to" nil t magit-push-arguments] 4)])
#@210 Push all tags to another repository.
If only one remote exists, then push to that.  Otherwise prompt
for a remote, offering the remote configured for the current
branch as default.
 
(fn REMOTE &optional ARGS)
(defalias 'magit-push-tags #[513 "\300\301!\210\302\303\304$\207" [run-hooks magit-credential-hook magit-run-git-async "push" "--tags"] 7 (#$ . 9288) (byte-code "\300\301\302\303#\304 D\207" [magit-read-remote "Push tags to remote" nil t magit-push-arguments] 4)])
#@67 Push a tag to another repository.
 
(fn TAG REMOTE &optional ARGS)
(defalias 'magit-push-tag #[770 "\300\301!\210\302\303$\207" [run-hooks magit-credential-hook magit-run-git-async "push"] 8 (#$ . 9770) (byte-code "\300\301!\211\302\303\304\"\305\306#\307 E\207" [magit-read-tag "Push tag" magit-read-remote format "Push %s to remote" nil t magit-push-arguments] 6)])
#@800 Push somewhere without using an explicit refspec.
 
This command simply runs "git push -v [ARGS]".  ARGS are the
arguments specified in the popup buffer.  No explicit refspec
arguments are used.  Instead the behavior depends on at least
these Git variables: `push.default', `remote.pushDefault',
`branch.<branch>.pushRemote', `branch.<branch>.remote',
`branch.<branch>.merge', and `remote.<remote>.push'.
 
To add this command to the push popup add this to your init file:
 
  (with-eval-after-load \='magit-remote
    (magit-define-popup-action \='magit-push-popup ?P
      \='magit-push-implicitly--desc
      \='magit-push-implicitly ?p t))
 
The function `magit-push-implicitly--desc' attempts to predict
what this command will do.  The value it returns is displayed in
the popup buffer.
 
(fn ARGS)
(defalias 'magit-push-implicitly #[257 "\300\301!\210\302\303\304#\207" [run-hooks magit-credential-hook magit-run-git-async "push" "-v"] 5 (#$ . 10148) (byte-code "\300 C\207" [magit-push-arguments] 1)])
(defalias 'magit-push-implicitly--desc #[0 "\300\301!\211\302\232?\205\213\303 \206\304\305!\211\205\300\306\307#\211\205,\310\311\312\313\314#\312\313\315##\266\202\206\213\316 ?\2059\317 \211\205H\310\320\321!\312\322\313\315##\262\206\213\316 \211\205^\310\320\321!\312\323\313\315##\262\206\213\324 \211\205t\310\320\321!\312\325\313\315##\262\206\213\310\326\312\327\313\315#\312\301\313\315#\312\313\315#$\207" [magit-get "push.default" "nothing" magit-get-remote magit-remote-p "origin" "remote" "push" format "%s using %s" propertize face magit-branch-remote bold magit-get-push-branch magit-get-upstream-branch "%s aka %s\n" magit-branch-set-face "@{upstream}" "pushRemote" magit-get-@{push}-branch "@{push}" "using %s (%s is %s)\n" "git push"] 10])
#@694 Push to REMOTE without using an explicit refspec.
The REMOTE is read in the minibuffer.
 
This command simply runs "git push -v [ARGS] REMOTE".  ARGS
are the arguments specified in the popup buffer.  No refspec
arguments are used.  Instead the behavior depends on at least
these Git variables: `push.default', `remote.pushDefault',
`branch.<branch>.pushRemote', `branch.<branch>.remote',
`branch.<branch>.merge', and `remote.<remote>.push'.
 
To add this command to the push popup add this to your init file:
 
  (with-eval-after-load \='magit-remote
    (magit-define-popup-action \='magit-push-popup ?r
      \='magit-push-to-remote--desc
      \='magit-push-to-remote ?p t))
 
(fn REMOTE ARGS)
(defalias 'magit-push-to-remote #[514 "\300\301!\210\302\303\304$\207" [run-hooks magit-credential-hook magit-run-git-async "push" "-v"] 7 (#$ . 11943) (byte-code "\300\301!\302 D\207" [magit-read-remote "Push to remote" magit-push-arguments] 2)])
(defalias 'magit-push-to-remote--desc #[0 "\300\301\302\303\304\305#\"\207" [format "using %s\n" propertize "git push <remote>" face bold] 6])
(provide 'magit-push)