aboutsummaryrefslogtreecommitdiff
path: root/lisp
AgeCommit message (Collapse)Author
2025-10-06Release version 4.4.2v4.4.2Jonas Bernoulli
2025-10-06Declare magit-log-heading-re in magit-diff.elJonas Bernoulli
2025-10-06Release version 4.4.1v4.4.1Jonas Bernoulli
2025-10-04magit-diff-wash-diff: Also stop when reaching a log headingJonas Bernoulli
A diff may contain just headers and no hunk. When washing a diff directly, we already detected that by checking whether we have reached the beginning of the next diff or eob. When the diff is part of a log, we additionally have to also check whether we have reached the next log heading. Alternatively we could pass along the limit from `magit-log-wash-rev' (as a marker, because we modify the buffer text), but that would complicate matters. Closes #5454.
2025-10-04magit-completing-read-multiple: Restore meaning of t as REQUIRE-MATCHJonas Bernoulli
As for `completing-read-multiple', if REQUIRE-MATCH is t, then all inputs must appear in the collection, but it is again possible to select nothing. Forge's uses of this function need this behavior. In [1: 4e2dd7ba6f] I should only have added the new `any' value, instead of also changing the meaning of t. Closes magit/forge#814. 1: 2025-08-16 4e2dd7ba6f54b2251a702b4c0416467d7315407a magit-completing-read-multiple: Support requiring non-empty input
2025-10-04magit-version: Don't include same timestamp twice in messageJonas Bernoulli
2025-10-04magit-diff-mode-map: Also bind S-SPC to scroll-downXavier Young
Generally, when we bind SPC to some "scroll down" command, we also bind DEL *and* S-SPC to the respective "scroll up" command. Do the same here.
2025-09-27magit-jump-to-revision-diffstat: Jump to diffstat file from hunkJonas Bernoulli
Before the menu `magit-revision-jump' was added, when point is on a file in a diff "j" (`magit-jump-to-diffstat-or-diff') jumped to the respective file within the diffstat. For `magit-diff-mode' it still does that. In `magit-revision-mode' "j" is now bound to `magit-revision-jump', with partially shadows the above behavior. To continue to allow quickly jumping between a file in a revision diff and the same file listed in the diffstat, `magit-revision-jump' pivots to calling `magit-jump-to-diffstat-or-diff' when invoked in those locations. The hope was that would preserve enough of the old behavior to make everyone happy. I.e., on a file jump to the other place that file is listed (as before), everywhere else (or with a prefix argument) show the menu, letting the user explicitly choose where to jump to this time around (previously this would have jumped to the diffstat). Users who want the old behavior back can do: (keymap-unset magit-revision-mode-map "j" t) Instead of adding a more explicit knob to restore the old behavior, this commit improves a variation: If `magit-jump-revision-diffstat' is invoked on a hunk (via "j s"), that now goes to the respective file in the diffstat, instead of to the heading of the diffstat itself. The hope is that going to a more precise location outweighs the added cost of having to press "j s" instead of just "j" to go to the diffstat. Do the same for `magit-jump-to-revision-diffstat', so that those users, who remove the new binding in `magit-revision-mode-map', can benefit too. Now let's just hope nobody dislikes going to the file heading instead of to the diffstat heading. Closes #5442.
2025-09-27magit-jump-to-revision-diffstat: Define using transient-define-suffixJonas Bernoulli
The next commit will make changes that `magit-define-section-jumper' does not support.
2025-09-27magit-jump-to-diffstat-or-diff: Optionally expand target sectionJonas Bernoulli
As for related commands.
2025-09-27magit-jump-to-diffstat-or-diff: CosmeticsJonas Bernoulli
2025-09-27magit-jump-to-diffstat-or-diff: Move definitionJonas Bernoulli
2025-09-26magit-revert-rev-file-buffer: Respect nil enable-local-variablesJonas Bernoulli
If the user has set `enable-local-variables' to nil, we want to respect that. `normal-mode's FIND-FILE argument wasn't designed for our use case, so we have to use this strange invocation to achieve that. Unfortunately, it is not possible to prevent every non-nil value being interpreted as t. In the future we might re-implement `normal-mode' to respect those values as well.
2025-09-25Do not use if-let* in autoloaded adviseJonas Bernoulli
Closes #5451.
2025-09-25Fix saving value of log and diff transient menusJonas Bernoulli
2025-09-23magit-save-repository-buffers-predicate: New variableJonas Bernoulli
Closes #5450.
2025-09-23magit-save-repository-buffers: CosmeticsJonas Bernoulli
2025-09-22magit-delete-shelved-branch: New commandJonas Bernoulli
2025-09-22magit-read-shelved-branch: New functionJonas Bernoulli
2025-09-22magit-log-matching-{branches,tags}: CosmeticsJonas Bernoulli
2025-09-21magit-discard-apply: Fix recent regressionJonas Bernoulli
If the SECTION:S argument is a single section, pass that along to the APPLY function again. Regression added in [1: d3f65e92fc]. Closes #5446. 1: 2025-09-18 d3f65e92fc83d9d63d947eb95c64b372c28abb03 magit-discard-apply: Absorb magit-discard-apply
2025-09-19magit-section-invisible-p: Define as an alias for magit-section-hiddenJonas Bernoulli
Clarify the docstrings of `magit-section-hidden' and `magit-section-hidden-body'.
2025-09-19magit-rebase-continue: Fix recent refactor mistakeJonas Bernoulli
2025-09-18magit-discard-apply: Absorb magit-discard-applyJonas Bernoulli
Here "primus" is short for "primus inter pares".
2025-09-18Use cond-let and cond-let* moreJonas Bernoulli
2025-09-18Use cond moreJonas Bernoulli
2025-09-18Move additional branches into existing uses of condJonas Bernoulli
2025-09-18Info-follow-nearest-node@gitman: Use if-let*Jonas Bernoulli
2025-09-18magit-process-display-buffer: Use when-let*Jonas Bernoulli
2025-09-18magit-commit-{absorb,autofixup}: Use prog1Jonas Bernoulli
2025-09-18magit-pop-revision-stack: CosmeticsJonas Bernoulli
2025-09-16No longer require packageJonas Bernoulli
The idea was to only ask `package' about what Magit version it installed when it is actually being used to manage packages. Loading it unconditionally goes counter to those intentions. Also, `straight' makes noise if it notices that `package' has been loaded as well. Closes #5443. Closes #5445.
2025-09-16Require dired, message and epa directlyJonas Bernoulli
We require `vc-git' for some minor functionality. Loading that took care of making some of our own dependencies available. Emacs commit [1: 2ee74aca554] stops requiring `message', and as a result we now have to require that and `dired' and `epa' in the appropriate places ourselves. 1: 2025-09-12 2ee74aca554786c20193b528363eb426e4f7f65c Delete obsolete log-edit-beginning-of-line
2025-09-13magit-hunk-section: Add fontified slotJonas Bernoulli
Add it now on "main", without actually using it, to make it easier to switch between "main" and the feature branch, which does use it.
2025-09-13magit--age: CosmeticsJonas Bernoulli
2025-09-13Use named-let instead of cl-labelsJonas Bernoulli
2025-09-13Replace unnecessary let* with letJonas Bernoulli
2025-09-12magit-log-trailer-labels: New optionJonas Bernoulli
Closes #5432.
2025-09-12magit-log-wash-rev: CosmeticsJonas Bernoulli
2025-09-12magit-log-wash-rev: CosmeticsJonas Bernoulli
2025-09-12magit-log-heading-format: New constantJonas Bernoulli
2025-09-10Help users find the documentation of ##Jonas Bernoulli
Closes #5437.
2025-09-09Release version 4.4.0v4.4.0Jonas Bernoulli
2025-09-09Bump dependenciesJonas Bernoulli
2025-09-09magit-blame--run: Handle starting from index blobJonas Bernoulli
2025-09-05make: Add missing space in *.elc targetJonas Bernoulli
Closes #5436.
2025-09-01magit-buffer-file-name: Drop repeated word from docstringKyle Meyer
2025-09-01magit-blob-next: Move definition after that of magit-blob-previousJonas Bernoulli
That is how I always order such pairs. Not sure what happened here.
2025-09-01magit-blob-{previous,next}: Add suffix predicatesJonas Bernoulli
2025-09-01Support navigating from and to index blobsJonas Bernoulli