emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit e0375e9: magit-log-refresh-buffer: No longer au


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit e0375e9: magit-log-refresh-buffer: No longer automatically add --full-history
Date: Sun, 8 Aug 2021 10:57:25 -0400 (EDT)

branch: elpa/git-commit
commit e0375e9bf3a918c373d41ba6563a0d8612f0d1bb
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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
---
 Documentation/RelNotes/3.3.0.org | 4 ++++
 lisp/magit-log.el                | 4 +---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]