;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\307\310\311\312\313DD\314\315\316\317\320&\210\307\321\311\312\322DD\323\324\325\315\326\317\327& \207" [require cl-lib dash eieio seq subr-x crm custom-declare-variable magit-completing-read-function funcall function #[0 "\300\207" [magit-builtin-completing-read] 1] "Function to be called when requesting input from the user.\n\nIf you have enabled `ivy-mode' or `helm-mode', then you don't\nhave to customize this option; `magit-builtin-completing-read'\nwill work just fine. However, if you use Ido completion, then\nyou do have to use `magit-ido-completing-read', because Ido is\nless well behaved than the former, more modern alternatives.\n\nIf you would like to use Ivy or Helm completion with Magit but\nnot enable the respective modes globally, then customize this\noption to use `ivy-completing-read' or\n`helm--completing-read-default'. If you choose to use\n`ivy-completing-read', note that the items may always be shown in\nalphabetical order, depending on your version of Ivy." :group magit-essentials :type (radio (function-item magit-builtin-completing-read) (function-item magit-ido-completing-read) (function-item ivy-completing-read) (function-item helm--completing-read-default) (function :tag "Other function")) magit-dwim-selection #[0 "\300\207" [((magit-stash-apply nil t) (magit-stash-branch nil t) (magit-stash-branch-here nil t) (magit-stash-format-patch nil t) (magit-stash-drop nil ask) (magit-stash-pop nil ask) (forge-browse-dwim nil t) (forge-browse-commit nil t) (forge-browse-branch nil t) (forge-browse-remote nil t) (forge-browse-issue nil t) (forge-browse-pullreq nil t) (forge-edit-topic-title nil t) (forge-edit-topic-state nil t) (forge-edit-topic-milestone nil t) (forge-edit-topic-labels nil t) (forge-edit-topic-marks nil t) (forge-edit-topic-assignees nil t) (forge-edit-topic-review-requests nil t) (forge-edit-topic-note nil t) (forge-pull-pullreq nil t) (forge-visit-issue nil t) (forge-visit-pullreq nil t) (forge-visit-topic nil t))] 1] "When not to offer alternatives and ask for confirmation.\n\nMany commands by default ask the user to select from a list of\npossible candidates. They do so even when there is a thing at\npoint that they can act on, which is then offered as the default.\n\nThis option can be used to tell certain commands to use the thing\nat point instead of asking the user to select a candidate to act\non, with or without confirmation.\n\nThe value has the form ((COMMAND nil|PROMPT DEFAULT)...).\n\n- COMMAND is the command that should not prompt for a choice.\n To have an effect, the command has to use the function\n `magit-completing-read' or a utility function which in turn uses\n that function.\n\n- If the command uses `magit-completing-read' multiple times, then\n PROMPT can be used to only affect one of these uses. PROMPT, if\n non-nil, is a regular expression that is used to match against\n the PROMPT argument passed to `magit-completing-read'.\n\n- DEFAULT specifies how to use the default. If it is t, then\n the DEFAULT argument passed to `magit-completing-read' is used\n without confirmation. If it is `ask', then the user is given\n a chance to abort. DEFAULT can also be nil, in which case the\n entry has no effect." :package-version (magit . "2.12.0") magit-commands (repeat (list (symbol :tag "Command") (choice (const :tag "for all prompts" nil) (regexp :tag "for prompts matching regexp")) (choice (const :tag "offer other choices" nil) (const :tag "require confirmation" ask) (const :tag "use default without confirmation" t))))] 10) (defconst magit--confirm-actions '((const discard) (const reverse) (const stage-all-changes) (const unstage-all-changes) (const delete) (const trash) (const resurrect) (const untrack) (const rename) (const reset-bisect) (const abort-rebase) (const abort-merge) (const merge-dirty) (const delete-unmerged-branch) (const delete-branch-on-remote) (const delete-pr-remote) (const drop-stashes) (const set-and-push) (const amend-published) (const rebase-published) (const edit-published) (const remove-modules) (const remove-dirty-modules) (const trash-module-gitdirs) (const kill-process) (const safe-with-wip))) (byte-code "\301\302\303\304\305DD\306\307\310\311\312\311\313\314\315\316\317\320\321\322BBBF& \210\301\323\303\304\324DD\325\307\326\311\327\314\315\330\331\320\321\332BBBF& \210\301\333\303\304\334DD\335\307\336\311\327\314\337& \210\301\340\303\304\341DD\342\307\343\311\327\314\344& \210\301\345\303\304\346DD\347\307\350\311\327\314\351& \210\301\352\303\304\353DD\354\307\355\311\327\314\356& \207" [magit--confirm-actions custom-declare-variable magit-no-confirm funcall function #[0 "\300\207" [(set-and-push)] 1] "A list of symbols for actions Magit should not confirm, or t.\n\nMany potentially dangerous commands by default ask the user for\nconfirmation. Each of the below symbols stands for an action\nwhich, when invoked unintentionally or without being fully aware\nof the consequences, could lead to tears. In many cases there\nare several commands that perform variations of a certain action,\nso we don't use the command names but more generic symbols.\n\nApplying changes:\n\n `discard' Discarding one or more changes (i.e. hunks or the\n complete diff for a file) loses that change, obviously.\n\n `reverse' Reverting one or more changes can usually be undone\n by reverting the reversion.\n\n `stage-all-changes', `unstage-all-changes' When there are both\n staged and unstaged changes, then un-/staging everything would\n destroy that distinction. Of course that also applies when\n un-/staging a single change, but then less is lost and one does\n that so often that having to confirm every time would be\n unacceptable.\n\nFiles:\n\n `delete' When a file that isn't yet tracked by Git is deleted\n then it is completely lost, not just the last changes. Very\n dangerous.\n\n `trash' Instead of deleting a file it can also be move to the\n system trash. Obviously much less dangerous than deleting it.\n\n Also see option `magit-delete-by-moving-to-trash'.\n\n `resurrect' A deleted file can easily be resurrected by\n \"deleting\" the deletion, which is done using the same command\n that was used to delete the same file in the first place.\n\n `untrack' Untracking a file can be undone by tracking it again.\n\n `rename' Renaming a file can easily be undone.\n\nSequences:\n\n `reset-bisect' Aborting (known to Git as \"resetting\") a\n bisect operation loses all information collected so far.\n\n `abort-rebase' Aborting a rebase throws away all already\n modified commits, but it's possible to restore those from the\n reflog.\n\n `abort-merge' Aborting a merge throws away all conflict\n resolutions which has already been carried out by the user.\n\n `merge-dirty' Merging with a dirty worktree can make it hard to\n go back to the state before the merge was initiated.\n\nReferences:\n\n `delete-unmerged-branch' Once a branch has been deleted it can\n only be restored using low-level recovery tools provided by\n Git. And even then the reflog is gone. The user always has\n to confirm the deletion of a branch by accepting the default\n choice (or selecting another branch), but when a branch has\n not been merged yet, also make sure the user is aware of that.\n\n `delete-branch-on-remote' Deleting a \"remote branch\" may mean\n deleting the (local) \"remote-tracking\" branch only, or also\n removing it from the remote itself. The latter often makes more\n sense because otherwise simply fetching from the remote would\n restore the remote-tracking branch, but doing that can be\n surprising and hard to recover from, so we ask.\n\n `delete-pr-remote' When deleting a branch that was created from\n a pull-request and if no other branches still exist on that\n remote, then `magit-branch-delete' offers to delete the remote\n as well. This should be safe because it only happens if no\n other refs exist in the remotes namespace, and you can recreate\n the remote if necessary.\n\n `drop-stashes' Dropping a stash is dangerous because Git stores\n stashes in the reflog. Once a stash is removed, there is no\n going back without using low-level recovery tools provided by\n Git. When a single stash is dropped, then the user always has\n to confirm by accepting the default (or selecting another).\n This action only concerns the deletion of multiple stashes at\n once.\n\nPublishing:\n\n `set-and-push' When pushing to the upstream or the push-remote\n and that isn't actually configured yet, then the user can first\n set the target. If s/he confirms the default too quickly, then\n s/he might end up pushing to the wrong branch and if the remote\n repository is configured to disallow fixing such mistakes, then\n that can be quite embarrassing and annoying.\n\nEdit published history:\n\n Without adding these symbols here, you will be warned before\n editing commits that have already been pushed to one of the\n branches listed in `magit-published-branches'.\n\n `amend-published' Affects most commands that amend to \"HEAD\".\n\n `rebase-published' Affects commands that perform interactive\n rebases. This includes commands from the commit popup that\n modify a commit other than \"HEAD\", namely the various fixup\n and squash variants.\n\n `edit-published' Affects the commands `magit-edit-line-commit'\n and `magit-diff-edit-hunk-commit'. These two commands make\n it quite easy to accidentally edit a published commit, so you\n should think twice before configuring them not to ask for\n confirmation.\n\n To disable confirmation completely, add all three symbols here\n or set `magit-published-branches' to nil.\n\nRemoving modules:\n\n `remove-modules' When you remove the working directory of a\n module that does not contain uncommitted changes, then that is\n safer than doing so when there are uncommitted changes and/or\n when you also remove the gitdir. Still, you don't want to do\n that by accident.\n\n `remove-dirty-modules' When you remove the working directory of\n a module that contains uncommitted changes, then those changes\n are gone for good. It is better to go to the module, inspect\n these changes and only if appropriate discard them manually.\n\n `trash-module-gitdirs' When you remove the gitdir of a module,\n then all unpushed changes are gone for good. It is very easy\n to forget that you have some unfinished work on an unpublished\n feature branch or even in a stash.\n\n Actually there are some safety precautions in place, that might\n help you out if you make an unwise choice here, but don't count\n on it. In case of emergency, stay calm and check the stash and\n the `trash-directory' for traces of lost work.\n\nVarious:\n\n `kill-process' There seldom is a reason to kill a process.\n\nGlobal settings:\n\n Instead of adding all of the above symbols to the value of this\n option you can also set it to the atom `t', which has the same\n effect as adding all of the above symbols. Doing that most\n certainly is a bad idea, especially because other symbols might\n be added in the future. So even if you don't want to be asked\n for confirmation for any of these actions, you are still better\n of adding all of the respective symbols individually.\n\n When `magit-wip-before-change-mode' is enabled then these actions\n can fairly easily be undone: `discard', `reverse',\n `stage-all-changes', and `unstage-all-changes'. If and only if\n this mode is enabled, then `safe-with-wip' has the same effect\n as adding all of these symbols individually." :package-version (magit . "2.1.0") :group magit-essentials magit-commands :type choice (const :tag "Always require confirmation" nil) (const :tag "Never require confirmation" t) set :tag "Require confirmation except for" magit-slow-confirm #[0 "\300\207" [(drop-stashes)] 1] "Whether to ask user \"y or n\" or \"yes or no\" questions.\n\nWhen this is nil, then `y-or-n-p' is used when the user has to\nconfirm a potentially destructive action. When this is t, then\n`yes-or-no-p' is used instead. If this is a list of symbols\nidentifying actions, then `yes-or-no-p' is used for those,\n`y-or-no-p' for all others. The list of actions is the same as\nfor `magit-no-confirm' (which see)." (magit . "2.9.0") magit-miscellaneous (const :tag "Always ask \"yes or no\" questions" t) (const :tag "Always ask \"y or n\" questions" nil) "Ask \"yes or no\" questions only for" magit-no-message #[0 "\300\207" [nil] 1] "A list of messages Magit should not display.\n\nMagit displays most echo area messages using `message', but a few\nare displayed using `magit-message' instead, which takes the same\narguments as the former, FORMAT-STRING and ARGS. `magit-message'\nforgoes printing a message if any member of this list is a prefix\nof the respective FORMAT-STRING.\n\nIf Magit prints a message which causes you grief, then please\nfirst investigate whether there is another option which can be\nused to suppress it. If that is not the case, then ask the Magit\nmaintainers to start using `magit-message' instead of `message'\nin that case. We are not proactively replacing all uses of\n`message' with `magit-message', just in case someone *might* find\nsome of these messages useless.\n\nMessages which can currently be suppressed using this option are:\n* \"Turning on magit-auto-revert-mode...\"" (magit . "2.8.0") (repeat string) magit-ellipsis #[0 "\300\301!\203\302\207\303\207" [char-displayable-p 8230 "…" "..."] 2] "String used to abbreviate text in process buffers.\n\nCurrently this is only used to elide `magit-git-global-arguments'\nin process buffers. In the future it may be used in other places\nas well, but not the following:\n\n- Author names in the log margin are always abbreviated using\n \"…\" or if that is not displayable, then \">\".\n\n- Whether collapsed sections are indicated using ellipsis is\n controlled by `magit-section-visibility-indicator'." (magit . "3.0.0") string magit-update-other-window-delay #[0 "\300\207" [0.2] 1] "Delay before automatically updating the other window.\n\nWhen moving around in certain buffers, then certain other\nbuffers, which are being displayed in another window, may\noptionally be updated to display information about the\nsection at point.\n\nWhen holding down a key to move by more than just one section,\nthen that would update that buffer for each section on the way.\nTo prevent that, updating the revision buffer is delayed, and\nthis option controls for how long. For optimal experience you\nmight have to adjust this delay and/or the keyboard repeat rate\nand delay of your graphical environment or operating system." (magit . "2.3.0") number magit-view-git-manual-method #[0 "\300\207" [info] 1] "How links to Git documentation are followed from Magit's Info manuals.\n\n`info' Follow the link to the node in the `gitman' Info manual\n as usual. Unfortunately that manual is not installed by\n default on some platforms, and when it is then the nodes\n look worse than the actual manpages.\n\n`man' View the respective man-page using the `man' package.\n\n`woman' View the respective man-page using the `woman' package." (magit . "2.9.0") (choice (const :tag "view info manual" info) (const :tag "view manpage using `man'" man) (const :tag "view manpage using `woman'" woman))] 18) (defvar magit-completing-read--silent-default nil) #@1891 Read a choice in the minibuffer, or use the default choice. This is the function that Magit commands use when they need the user to select a single thing to act on. The arguments have the same meaning as for `completing-read', except for FALLBACK, which is unique to this function and is described below. Instead of asking the user to choose from a list of possible candidates, this function may instead just return the default specified by DEF, with or without requiring user confirmation. Whether that is the case depends on PROMPT, `this-command' and `magit-dwim-selection'. See the documentation of the latter for more information. If it does use the default without the user even having to confirm that, then `magit-completing-read--silent-default' is set to t, otherwise nil. If it does read a value in the minibuffer, then this function acts similarly to `completing-read', except for the following: - COLLECTION must be a list of choices. A function is not supported. - If REQUIRE-MATCH is nil and the user exits without a choice, then nil is returned instead of an empty string. - If REQUIRE-MATCH is non-nil and the user exits without a choice, `user-error' is raised. - FALLBACK specifies a secondary default that is only used if the primary default DEF is nil. The secondary default is not subject to `magit-dwim-selection' — if DEF is nil but FALLBACK is not, then this function always asks the user to choose a candidate, just as if both defaults were nil. - ": " is appended to PROMPT. - PROMPT is modified to end with " (default DEF|FALLBACK): " provided that DEF or FALLBACK is non-nil, that neither `ivy-mode' nor `helm-mode' is enabled, and that `magit-completing-read-function' is set to its default value of `magit-builtin-completing-read'. (fn PROMPT COLLECTION &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF FALLBACK) (defalias 'magit-completing-read #[2050 "\304\205\305\306\307\310 \" \"8\211\2030\211\311=\203,\312\313\314 #!\203(\207\315\316!\207\317\207\2047\262\n \n\320P\203O \235\204O B\202Q\n\n\n\n\n\n&\211\321\232\203n\205o\315\322!\207\211\207" [magit-completing-read--silent-default magit-dwim-selection this-command magit-completing-read-function nil 2 -first make-closure #[257 "\211\242\243\211\242\243\211\243 =\205$\211?\206$\211\300\303\304\305#)\266\203\207" [V0 this-command inhibit-changing-match-data nil t string-match] 15 "\n\n(fn ARG0)"] ask y-or-n-p format "%s %s? " user-error "Abort" t ": " "" "Nothing selected"] 18 (#$ . 15660)]) #@19 (fn COLLECTION) (defalias 'magit--completion-table #[257 "\300\301\"\207" [make-closure #[771 "\211\301=\203\302\207\303\300$\207" [V0 metadata (metadata (display-sort-function . identity)) complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"]] 4 (#$ . 18250)]) #@134 Magit wrapper for standard `completing-read' function. (fn PROMPT CHOICES &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF) (defalias 'magit-builtin-completing-read #[1794 "\306\300!\203\n\204/\306\301!\203 \204/\306\302!\203\n\204/\306\303!\203( \204/\307\"\262\306\300!\2039\204I\306\301!\203C \204I\310!\262\311K\312\313\"\216\f\314W\203Z\311\315M\210\316\317&*\207" [helm-mode ivy-mode vertico-mode selectrum-mode emacs-major-version ivy-sort-functions-alist boundp magit-prompt-with-default magit--completion-table completion-pcm--all-completions make-closure #[0 "\301\300M\207" [V0 completion-pcm--all-completions] 2] 26 magit-completion-pcm--all-completions nil completing-read] 16 (#$ . 18528)]) #@523 Read multiple items from CHOICES, separated by SEP. Set up the `crm' variables needed to read multiple values with `read-from-minibuffer'. SEP is a regexp matching characters that can separate choices. When SEP is nil, it defaults to `crm-default-separator'. DEFAULT, HIST, and KEYMAP are passed to `read-from-minibuffer'. When KEYMAP is nil, it defaults to `crm-local-completion-map'. Unlike `completing-read-multiple', the return value is not split into a list. (fn PROMPT CHOICES &optional SEP DEFAULT HIST KEYMAP) (defalias 'magit-completing-read-multiple #[1538 "\206\306!\307\310\311\312\211\312\313K\314\315\"\216\316W\203+\313\317M\210\320\2057\321\322\"\323Q\312\206@\312 &)\262\211\324\230\203[\211\262\204[\325\326!\210.\207" [crm-default-separator crm-separator crm-completion-table choose-completion-string-functions minibuffer-completion-table minibuffer-completion-confirm magit--completion-table (crm--choose-completion-string) crm--collection-fn t nil completion-pcm--all-completions make-closure #[0 "\301\300M\207" [V0 completion-pcm--all-completions] 2] 26 magit-completion-pcm--all-completions read-from-minibuffer format " (%s)" ": " "" user-error "Nothing selected" helm-completion-in-region-default-sort-fn helm-crm-default-separator ivy-sort-matches-functions-alist emacs-major-version crm-local-completion-map] 15 (#$ . 19290)]) (make-obsolete 'magit-completing-read-multiple 'magit-completing-read-multiple* "Magit 3.1.0") #@431 Read multiple strings in the minibuffer, with completion. Like `completing-read-multiple' but don't mess with order of TABLE and take an additional argument NO-SPLIT, which causes the user input to be returned as a single unmodified string. Also work around various misfeatures of various third-party completion frameworks. (fn PROMPT TABLE &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF INHERIT-INPUT-METHOD NO-SPLIT) (defalias 'magit-completing-read-multiple* #[2306 "\304C\305K\306\307$\305K\306\310\"\216\305M\210\311W\203\312\202!\313K\313K\306\314\"\216\313M\210\315!\304\211?\205A\316\303!\205A \317&\203_\242\202`\211\262+\262)\266\202)\207" [emacs-major-version ivy-sort-matches-functions-alist helm-completion-in-region-default-sort-fn helm-crm-default-separator nil split-string make-closure #[1025 "\300\203 \232\203\304=\203\301\240\210\302$\207" [V0 V1 V2 crm-separator t] 9 "\n\n(fn STRING &optional SEPARATORS OMIT-NULLS TRIM)"] #[0 "\301\300M\207" [V0 split-string] 2] 26 magit-completion-pcm--all-completions completion-pcm--all-completions #[0 "\301\300M\207" [V0 completion-pcm--all-completions] 2] magit--completion-table boundp completing-read-multiple] 26 (#$ . 20791)]) #@313 Ido-based `completing-read' almost-replacement. Unfortunately `ido-completing-read' is not suitable as a drop-in replacement for `completing-read', instead we use `ido-completing-read+' from the third-party package by the same name. (fn PROMPT CHOICES &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF) (defalias 'magit-ido-completing-read #[1794 "\300\301\302\303#\203%\301\206\"\n\205\"\f@&\207\304\305\306\307#\210\310&\207" [require ido-completing-read+ nil t display-warning magit "ido-completing-read+ is not installed\n\nTo use Ido completion with Magit you need to install the\nthird-party `ido-completing-read+' packages. Falling\nback to built-in `completing-read' for now." :error magit-builtin-completing-read] 15 (#$ . 22060)]) #@19 (fn PROMPT DEF) (defalias 'magit-prompt-with-default #[514 "\211\203G\300V\203\301\302O\303\230\203\304\305\306\301O#\207\207" [2 -2 nil ": " format "%s (default %s): " 0] 7 (#$ . 22852)]) (defvar magit-minibuffer-local-ns-map (byte-code "\301 \302\"\210\303\304\305#\210\303\306\305#\210\207" [minibuffer-local-map make-sparse-keymap set-keymap-parent define-key " " magit-whitespace-disallowed " "] 5)) #@55 Beep to tell the user that whitespace is not allowed. (defalias 'magit-whitespace-disallowed #[0 "\301 \210\302\303!\210\304\305 \207" [defining-kbd-macro ding message "Whitespace isn't allowed here" nil force-mode-line-update] 2 (#$ . 23280) nil]) #@493 Read a string from the minibuffer, prompting with string PROMPT. This is similar to `read-string', but * empty input is only allowed if DEFAULT-VALUE is non-nil in which case that is returned, * whitespace is not allowed and leading and trailing whitespace is removed automatically if NO-WHITESPACE is non-nil, * ": " is appended to PROMPT, and * an invalid DEFAULT-VALUE is silently ignored. (fn PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD NO-WHITESPACE) (defalias 'magit-read-string #[1537 "\203:\203 @\262;\204\303\262\303\304\305\306P\"\205& \303&\307\310\230\203=\203=\262\203J\211\311\312\"\"\262\310\230\203V\313\314!\202q\203p\315\303\316\317#)\266\203\203p\313\320!\202q)\207" [minibuffer-completion-table magit-minibuffer-local-ns-map inhibit-changing-match-data nil read-from-minibuffer magit-prompt-with-default ": " #[514 "\300 \301\302\"\216\303\"\203\304\305\306\211$\202)\207" [match-data make-closure #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] string-match replace-match #1="" t] 8 "\n\n(fn REGEXP STRING)"] #1# "\\`\\(?:[ \n ]+\\)" "\\(?:[ \n ]+\\)\\'" user-error "Need non-empty input" "[ \n]" t string-match "Input contains whitespace"] 15 (#$ . 23537)]) #@134 Call `magit-read-string' with non-nil NO-WHITESPACE. (fn PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD) (defalias 'magit-read-string-ns #[1281 "\300\301&\207" [magit-read-string t] 12 (#$ . 24832)]) #@37 (fn PROMPT VERBOSE &rest CLAUSES) (defalias 'magit-read-char-case '(macro . #[642 "\300\301\302\303\304\305\306\307\310\n\"B\311BBB\203\312\202\313F\314\307\315\"DE\307\316\"BB\317BB\207" [prog1 pcase read-char-choice concat mapconcat #'identity list mapcar cadr (", ") ", or [C-g] to abort " " " quote car #[257 "\211@AAB\207" [] 3 "\n\n(fn IT)"] ((message ""))] 14 (#$ . 25072)])) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put magit-read-char-case lisp-indent-function 2 put edebug-form-spec (form form &rest (characterp form body))] 5) #@192 Ask user a "y or n" or a "yes or no" question using PROMPT. Which kind of question is used depends on whether ACTION is a member of option `magit-slow-confirm'. (fn PROMPT &optional ACTION) (defalias 'magit-y-or-n-p #[513 "\301=\204\211\203\211\235\203\302!\207\303!\207" [magit-slow-confirm t yes-or-no-p y-or-n-p] 4 (#$ . 25653)]) (defvar magit--no-confirm-alist '((safe-with-wip magit-wip-before-change-mode discard reverse stage-all-changes unstage-all-changes))) #@68 (fn ACTION &optional PROMPT PROMPT-N NOABORT (ITEMS nil SITEMS)) (defalias 'magit-confirm #[1153 "\211\205\302\211A\262\242\203\303\304\305\306G\\D\"\210\307\206!\310PG\"\262\307\2062\311!\310P@\"\262\302=\204a\302=\204X>\204X\312\313\314 \" \"\203a?\206\245\211\202\232\204n\315\"\202\232\211G\316U\203\202\315\"\203\235\211\202\232\211G\316V\203\235\315\317\320\321#\322Q\"\203\235\211\206\245?\205\245\323\324!\207" [magit-no-confirm magit--no-confirm-alist t signal wrong-number-of-arguments magit-confirm 5 format "? " magit-confirm-make-prompt cl-member-if make-closure #[257 "\211\242\243\211\242\243 >\205$\300>\205$?\206$\302!\205$J\207" [V0 magit-no-confirm boundp] 10 "\n\n(fn ARG0)"] magit-y-or-n-p 1 mapconcat identity "\n" "\n\n" user-error "Abort"] 12 (#$ . 26138)]) (byte-code "\300\301\302\303#\300\207" [function-put magit-confirm lisp-indent-function defun] 4) #@38 (fn ACTION FILES &optional PROMPT) (defalias 'magit-confirm-files #[770 "\205\211\204 \300!\262\301\302P\303P\304%\207" [magit-confirm-make-prompt magit-confirm " %s" " %i files" nil] 9 (#$ . 27100)]) #@15 (fn ACTION) (defalias 'magit-confirm-make-prompt #[257 "\300!\301\302\303\304\305O\226\305\306OP#\207" [symbol-name replace-regexp-in-string "-" " " 0 1 nil] 9 (#$ . 27320)]) #@134 Like `read-number' but return value is a string. DEFAULT may be a number or a numeric string. (fn PROMPT &optional DEFAULT HISTORY) (defalias 'magit-read-number-string #[769 "\300\301;\203\302!\202\"!\207" [number-to-string read-number string-to-number] 8 (#$ . 27507)]) #@139 Show a shell command that runs an uncustomized Emacs with only Magit loaded. See info node `(magit)Debugging Tools' for more information. (defalias 'magit-emacs-Q-command #[0 "\302\303 P\304\305\306\307\310\311\312\310\313\314\"!\"\315\316\317\320!!D\"BBBB\321#\322\323\324\"\210\325!\207" [invocation-directory invocation-name mapconcat shell-quote-argument "-Q" "--eval" "(setq debug-on-error t)" append cl-mapcan #[257 "\300D\207" ["-L"] 3 "\n\n(fn DIR)"] delete-dups #[257 "\300!\211\203\f\301!C\207\302\232?\205\303\304\"\207" [locate-library file-name-directory "libgit" error "Cannot find mandatory dependency %s"] 5 "\n\n(fn LIB)"] ("dash" "libgit" "transient" "with-editor" "magit" "magit-section" "git-commit") "-l" file-name-sans-extension locate-library "magit" " " message "Uncustomized Magit command saved to kill-ring, %s" "please run it in a terminal." kill-new] 13 (#$ . 27794) nil]) #@308 Bind variables to submatches according to VARLIST then evaluate BODY. Bind the symbols in VARLIST to submatches of the current match data, starting with 1 and incrementing by 1 for each symbol. If the last match was against a string, then that has to be provided as STRING. (fn VARLIST STRING &rest BODY) (defalias 'magit-bind-match-strings '(macro . #[642 "\300\301!\302C\303DC\303\304 \305\306\"\216\307\305\310#\n\")\262BBE\207" [cl-gensym "string" 0 let match-data make-closure #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] cl-mapcan #[257 "\301\211\242T\240\210\302!\303H\304=?\205\211\305\301\242\300EDC\207" [V0 V1 symbol-name 0 95 match-string] 5 "\n\n(fn SYM)"]] 14 (#$ . 28712)])) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put magit-bind-match-strings lisp-indent-function 2 put edebug-form-spec (listp form body)] 5) #@38 Delete the rest of the current line. (defalias 'magit-delete-line #[0 "`\300 T|\207" [line-end-position] 2 (#$ . 29594)]) #@119 Delete text matched by last search. If optional NUM is specified, only delete that subexpression. (fn &optional NUM) (defalias 'magit-delete-match #[256 "\211\206\300\224\206 \300\225|\207" [0] 3 (#$ . 29723)]) #@55 Return the first line of FILE as a string. (fn FILE) (defalias 'magit-file-line #[257 "\300!\205\301\302\303\"r\211q\210\304\305\"\216\306!\210\307e\310 \"*\262\207" [file-regular-p generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents buffer-substring-no-properties line-end-position] 5 (#$ . 29945)]) #@175 Return a list of strings containing one element per line in FILE. Unless optional argument KEEP-EMPTY-LINES is t, trim all empty lines. (fn FILE &optional KEEP-EMPTY-LINES) (defalias 'magit-file-lines #[513 "\300!\205!\301\302\303\"r\211q\210\304\305\"\216\306!\210\307\310 \311?#*\262\207" [file-regular-p generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents split-string buffer-string "\n"] 7 (#$ . 30341)]) #@258 Set the header-line using STRING. Propertize STRING with the `magit-header-line'. If the `face' property of any part of STRING is already set, then that takes precedence. Also pad the left side of STRING so that it aligns with the text area. (fn STRING) (defalias 'magit-set-header-line-format #[257 "\301\302\303\304#P\211\207" [header-line-format propertize " " display (space :align-to 0)] 5 (#$ . 30845)]) #@71 Return non-nil if FACE is present in all of STRING. (fn FACE STRING) (defalias 'magit-face-property-all #[514 "\30024\301\302\303#\211\262\203/\304\303#\211:\203 >\202#=\204+\305\300\306\"\210\210\202\211?\2620\207" [missing 0 next-single-property-change font-lock-face get-text-property throw nil] 7 (#$ . 31266)]) #@100 Like `add-face-text-property' but for `font-lock-face'. (fn BEG END FACE &optional APPEND OBJECT) (defalias 'magit--add-face-text-property #[1283 "W\205A\300\301$\302\301#\211<\203\211\202\211C\303\301\2031\304 C\"\2025 B%\210\262\266\202\207" [next-single-property-change font-lock-face get-text-property put-text-property append] 15 (#$ . 31607)]) #@20 (fn STRING FACE) (defalias 'magit--propertize-face #[514 "\300\301\302%\207" [propertize face font-lock-face] 8 (#$ . 31996)]) #@28 (fn BEG END FACE STRING) (defalias 'magit--put-face #[1028 "\300\301%\210\300\302%\207" [put-text-property face font-lock-face] 10 (#$ . 32134)]) #@94 Like `format-spec' but preserve text properties in SPECIFICATION. (fn FORMAT SPECIFICATION) (defalias 'magit--format-spec #[514 "\300\301\302\"r\211q\210\303\304\"\216c\210eb\210\305\306\307\302#\203\307f\310=\203)\311\312!\210\202\313\314!\203x\315\312!\316\315\317!!\211\236\211\204C\320\321\"\210\211A\262\322\306\323Q\"\324\325\326P\"\203]\211c\210\202a\327!\210\325\224G\\\325\225G\\|\210\325\224S\325\224|\266\202\320\330!\210\202\331 *\207" [generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] search-forward "%" nil 37 delete-char 1 looking-at "\\([-0-9.]*\\)\\([a-zA-Z]\\)" match-string string-to-char 2 error "Invalid format character: `%%%c'" format "s" next-property-change 0 " " insert-and-inherit "Invalid format string" buffer-string] 11 (#$ . 32296)]) #@26 Kill the current buffer. (defalias 'magit-kill-this-buffer #[0 "\300p!\207" [kill-buffer] 2 (#$ . 33156) nil]) #@670 Like `buffer-substring-no-properties' but the arguments are optional. This combines the benefits of `buffer-string', `buffer-substring' and `buffer-substring-no-properties' into one function that is not as painful to use as the latter. I.e. you can write (magit--buffer-string) instead of (buffer-substring-no-properties (point-min) (point-max)) Optional MIN defaults to the value of `point-min'. Optional MAX defaults to the value of `point-max'. If optional TRIM is non-nil, then all leading and trailing whitespace is remove. If it is the newline character, then one trailing newline is added. (fn &optional MIN MAX TRIM) (defalias 'magit--buffer-string #[768 "\300\206e\206 d\"\203\301!\302=\205\303P\207\207" [buffer-substring-no-properties string-trim 10 "\n"] 7 (#$ . 33274)]) #@187 Like `file-accessible-directory-p' but work around an Apple bug. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21573#17 and https://github.com/magit/magit/issues/2295. (fn FILENAME) (defalias 'magit-file-accessible-directory-p #[257 "\300!\205 \301!\207" [file-directory-p file-accessible-directory-p] 3 (#$ . 34121)]) (byte-code "\302\303\"\203\f\304\305\306\"\210 \307W\2033\310\311\312\"\210\313\314\315\311#\210\310\316\317\"\210\313\320\315\316#\210\310\321\322\"\210\313\323\315\321#\210 \324W\203>\310\325\326\"\210\302\207" [emacs-version emacs-major-version version<= "25.1" eval-after-load vc-git #[0 "\300\301\302\"\207" [defalias vc-git-conflicted-files #[257 "\300\301\302#\211\205\303\304\305#\306\211\203=\211@\307\310\"\2036\311\312\"\311\313\"\314\232\2034\315 \"B\262\266A\266\202\202\207" [vc-git--run-command-string "diff-files" "--name-status" split-string "\n" omit-nulls nil string-match "\\([ MADRCU?!]\\)[ ]+\\(.+\\)" match-string 1 2 "U" expand-file-name] 11 "Return the list of files with conflicts in DIRECTORY.\n\n(fn DIRECTORY)"]] 3] 27 defalias vc-git--call@bug21559 #[899 " \203\n\302B\303$)\207" [process-environment revert-buffer-in-progress-p "GIT_OPTIONAL_LOCKS=0" apply] 9 "Backport https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21559.\n\n(fn FN BUFFER COMMAND &rest ARGS)"] advice-add vc-git--call :around vc-git-command@bug21559 #[1156 " \203\n\302B\303%)\207" [process-environment revert-buffer-in-progress-p "GIT_OPTIONAL_LOCKS=0" apply] 11 "Backport https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21559.\n\n(fn FN BUFFER OKSTATUS FILE-OR-LIST &rest FLAGS)"] vc-git-command auto-revert-handler@bug21559 #[257 "\301\211 )\207" [revert-buffer-in-progress-p t] 2 "Backport https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21559.\n\n(fn FN)"] auto-revert-handler 26 magit-completion-pcm--all-completions #[1028 "\304!\203\305@P#\207\306!\211\nB\305@;\203%@\202&\307P#\310!\2044\211\202]\311\211\203X\211@\311\312\313#)\266\203\203Q\211B\262A\266\202\2026\210\211\237\262*\207" [completion-ignore-case case-fold-search completion-regexp-list inhibit-changing-match-data completion-pcm--pattern-trivial-p all-completions completion-pcm--pattern->regex "" functionp nil t string-match] 16 "\n\n(fn PREFIX PATTERN TABLE PRED)"]] 4) #@238 Return current function name based on point. This is a simple wrapper around `which-function', that resets Imenu's potentially outdated and therefore unreliable cache by setting `imenu--index-alist' to nil before calling that function. (defalias 'magit-which-function #[0 "\301\302 \207" [imenu--index-alist nil which-function] 1 (#$ . 36477)]) #@352 Initialize SYMBOL based on EXP. Set the symbol, using `set-default' (unlike `custom-initialize-reset' which uses the `:set' function if any.) The value is either the symbol's current value (as obtained using the `:get' function), if any, or the value in the symbol's `saved-value' property if any, or (last of all) the value of EXP. (fn SYMBOL EXP) (defalias 'magit-custom-initialize-reset #[514 "\300\3011 \302!\303N\211\203\211!\266\202\202\266\2020\2022\210\304\305N\211\203.\211@\202/\262!\"\207" [set-default-toplevel-value (error) default-toplevel-value custom-get eval saved-value] 8 (#$ . 36831)]) #@15 (fn SYMBOL) (defalias 'magit-hook-custom-get #[257 "\300\301\"\203 \302!\207\303\304N@!\302!\305\306N\211\2036\211@\211>\204*\211>\203/\211B\262A\266\202\202\210\211\203P\211@\211>\204I\211B\262A\266\202\2028\210\211\237\207" [symbol-file defvar default-toplevel-value eval standard-value nil custom-options] 8 (#$ . 37462)]) #@26 (fn FN &optional FORK) (defalias 'Info-follow-nearest-node--magit-gitman #[513 "\301`\302\303#\211\2034\304\305\"\2034\306\267\2020!\207\307\310!\210\310\311\312\"!\207\307\313!\210\313\311\312\"!\207\314\315!\207!\207" [magit-view-git-manual-method Info-get-token "\\*note[ \n ]+" "\\*note[ \n ]+\\([^:]*\\):\\(:\\|[ \n ]*(\\)?" string-match "^(gitman)\\(.+\\)" #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (info 22 man 26 woman 37)) require man match-string 1 woman user-error "Invalid value for `magit-view-git-manual-method'"] 7 (#$ . 37820)]) (advice-add 'Info-follow-nearest-node :around 'Info-follow-nearest-node--magit-gitman) #@35 (fn FN LINK DESCRIPTION FORMAT) (defalias 'org-man-export--magit-gitman #[1028 "\211\301=\203\302\303\304\305#)\266\203\203\306\307\310#\207#\207" [inhibit-changing-match-data texinfo "\\`git" nil t string-match replace-regexp-in-string "%s" "\n@ifinfo\n@ref{%s,,,gitman,}.\n@end ifinfo\n@ifhtml\n@html\nthe %s(1) manpage.\n@end html\n@end ifhtml\n@iftex\nthe %s(1) manpage.\n@end iftex\n"] 11 (#$ . 38514)]) (advice-add 'org-man-export :around 'org-man-export--magit-gitman) #@279 Chase links in FILENAME until a name that is not a link. This is the same as `file-chase-links', except that it also handles fake symlinks that are created by the package manager straight.el on Windows. See . (fn FILENAME) (defalias 'magit--straight-chase-links #[257 "\301\300!\203!\203!\302\303!\203!\303!\211\203 \211\304=\204 \211\262\210\305!\207" [straight-symlink-emulation-mode boundp fboundp straight-chase-emulated-symlink broken file-chase-links] 4 (#$ . 39056)]) #@248 Display a message at the bottom of the screen, or not. Like `message', except that if the users configured option `magit-no-message' to prevent the message corresponding to FORMAT-STRING to be displayed, then don't. (fn FORMAT-STRING &rest ARGS) (defalias 'magit-message #[385 "\301\302\301\211\211\2038\211A\262\242\262\262\211\262\2038\303 \"\203+\301\262\2038\262\262T\262\202\266\211\262?\205F\304\305#\207" [magit-no-message nil 0 string-prefix-p apply message] 11 (#$ . 39602)]) #@160 Display a message at the bottom of the screen, but don't log it. Like `message', except that `message-log-max' is bound to nil. (fn FORMAT-STRING &rest ARGS) (defalias 'magit-msg #[385 "\301\302\303#)\207" [message-log-max nil apply message] 6 (#$ . 40125)]) #@27 (fn BUF POS &rest BODY) (defalias 'magit--with-temp-position '(macro . #[642 "\300\301\302\303\304\305\306BBDBBBDE\207" [with-current-buffer save-excursion save-restriction (widen) goto-char or (1)] 12 (#$ . 40394)])) (byte-code "\300\301\302\303#\304\305!\207" [function-put magit--with-temp-position lisp-indent-function 2 provide magit-utils] 4)