chiark / gitweb /
stgit.el: Improve how "t h" mode finds old commits
[stgit] / contrib / stgit.el
index 0981eb59f1e2003bc6bed6055f9feb4f7cb345f6..83e8ea5ea8fd99dc3fa2f4293d6ad9aeb6275222 100644 (file)
@@ -508,8 +508,8 @@ (defun stgit-run-series (ewoc)
     (when stgit-show-committed
       (let* ((show-svn stgit-show-svn)
              (svn-hash stgit-svn-find-rev-hash)
-             (base (stgit-id "{base}"))
-             (range (format "%s~%d..%s" base stgit-committed-count base)))
+             (nentries (format "-%s" stgit-committed-count))
+             (base (stgit-id "{base}")))
         (with-temp-buffer
           (let* ((standard-output (current-buffer))
                  (fmt (stgit-line-format))
@@ -518,7 +518,8 @@ (defun stgit-run-series (ewoc)
                  (exit-status (stgit-run-git-silent "--no-pager" "log"
                                                     "--reverse"
                                                     "--pretty=oneline"
-                                                    range)))
+                                                    nentries
+                                                    base)))
             (goto-char (point-min))
             (if (not (zerop exit-status))
                 (message "Failed to run git log")