aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-08-08 16:42:03 +0200
committerJonas Bernoulli <jonas@bernoul.li>2021-08-08 16:46:56 +0200
commite0375e9bf3a918c373d41ba6563a0d8612f0d1bb (patch)
tree7a1c907cbc4fd495ebaa4d5053285a07cc6d5492
parentf6ccde31a3d47f7da46dd3d5856aa25e48ec2b43 (diff)
magit-log-refresh-buffer: No longer automatically add --full-history
No longer automatically add `--full-history' when showing log for a single file that isn't being tracked anymore. - In many cases this argument isn't needed to ensure that there aren't zero commits shown for a removed file. - This argument can be relatively expensive. This reverts [1: 1cda70250], closes #4381. 1: 2017-10-26 1cda7025014c6e2efc859379b3d7ac8bd9a4109a magit-log-refresh-buffer: add --full-history for single removed file
-rw-r--r--Documentation/RelNotes/3.3.0.org4
-rw-r--r--lisp/magit-log.el4
2 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/RelNotes/3.3.0.org b/Documentation/RelNotes/3.3.0.org
index 5abc208..0a49105 100644
--- a/Documentation/RelNotes/3.3.0.org
+++ b/Documentation/RelNotes/3.3.0.org
@@ -1,4 +1,8 @@
* Magit v3.3.0 Release Notes (unreleased)
** Breaking changes
** Changes since v3.2.0
+
+- No longer automatically add ~--full-history~ when showing log for a
+ single file that isn't being tracked anymore. #4381
+
** Fixes since v3.2.0
diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 887232c..ea4100a 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -1007,9 +1007,7 @@ Type \\[magit-reset] to reset `HEAD' to the commit at point.
(files magit-buffer-log-files))
(magit-set-header-line-format
(funcall magit-log-header-line-function revs args files))
- (if (= (length files) 1)
- (unless (magit-file-tracked-p (car files))
- (setq args (cons "--full-history" args)))
+ (unless (= (length files) 1)
(setq args (remove "--follow" args)))
(when (and (car magit-log-remove-graph-args)
(--any-p (string-match-p