branch: elpa/magit
commit 3f7fcf073cf2546134b1ad0f334f6bc704cdbc2e
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-commit:--date: Define explicitly
---
 lisp/magit-commit.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index 3b3f0b8d074..62a5fb8ce74 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -127,7 +127,7 @@ Also see https://github.com/magit/magit/issues/4132.";
    ("-n" "Disable hooks"                          ("-n" "--no-verify"))
    ("-R" "Claim authorship and reset author date" "--reset-author")
    (magit:--author :description "Override the author")
-   (7 "-D" "Override the author date" "--date=" transient-read-date)
+   (7 magit-commit:--date)
    ("-s" "Add Signed-off-by line"                 ("-s" "--signoff"))
    (5 magit:--gpg-sign)
    (magit-commit:--reuse-message)]
@@ -155,6 +155,13 @@ Also see https://github.com/magit/magit/issues/4132.";
 (defun magit-commit-arguments nil
   (transient-args 'magit-commit))
 
+(transient-define-argument magit-commit:--date ()
+  :description "Override the author date"
+  :class 'transient-option
+  :shortarg "-D"
+  :argument "--date="
+  :reader #'transient-read-date)
+
 (transient-define-argument magit-commit:--reuse-message ()
   :description "Reuse commit message"
   :class 'transient-option

Reply via email to