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

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

[nongnu] elpa/git-commit 534ef5a 2/3: magit-log:{--since, --until}: Defi


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 534ef5a 2/3: magit-log:{--since, --until}: Define explicitly
Date: Fri, 20 Aug 2021 16:57:22 -0400 (EDT)

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

    magit-log:{--since,--until}: Define explicitly
---
 lisp/magit-log.el | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index f83907e..3eeb877 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -406,8 +406,8 @@ the upstream isn't ahead of the current branch) show."
   ["Commit limiting"
    (magit-log:-n)
    (magit:--author)
-   (7 "=s" "Limit to commits since" "--since=" transient-read-date)
-   (7 "=u" "Limit to commits until" "--until=" transient-read-date)
+   (7 magit-log:--since)
+   (7 magit-log:--until)
    (magit-log:--grep)
    (7 "-i" "Search case-insensitive" ("-i" "--regexp-ignore-case"))
    (7 "-I" "Invert search pattern"   "--invert-grep")
@@ -550,6 +550,20 @@ the upstream isn't ahead of the current branch) show."
   :argument "--author="
   :reader 'magit-transient-read-person)
 
+(transient-define-argument magit-log:--since ()
+  :description "Limit to commits since"
+  :class 'transient-option
+  :key "=s"
+  :argument "--since="
+  :reader 'transient-read-date)
+
+(transient-define-argument magit-log:--until ()
+  :description "Limit to commits until"
+  :class 'transient-option
+  :key "=u"
+  :argument "--until="
+  :reader 'transient-read-date)
+
 (transient-define-argument magit-log:--*-order ()
   :description "Order commits by"
   :class 'transient-switches



reply via email to

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