diff options
| author | David Engster | 2015-11-14 23:14:36 +0100 |
|---|---|---|
| committer | David Engster | 2015-11-14 23:16:51 +0100 |
| commit | dcd5877a76557f4ce08bebee0d8919ad951a9f13 (patch) | |
| tree | 392f1a67ab902b5b1251b77523ce4629625d0b7d /admin/gitmerge.el | |
| parent | 2ac79ae901422384e8d093e079862e57c72ef2dc (diff) | |
| download | emacs-dcd5877a76557f4ce08bebee0d8919ad951a9f13.tar.gz emacs-dcd5877a76557f4ce08bebee0d8919ad951a9f13.zip | |
gitmerge: Fix git log command
* admin/gitmerge.el (gitmerge-missing): Use '--left-only' since we
only want commits from the branch that is to be merged.
(gitmerge-setup-log-buffer): Use the same symmetric range as in
`gitmerge-missing'.
Diffstat (limited to 'admin/gitmerge.el')
| -rw-r--r-- | admin/gitmerge.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/gitmerge.el b/admin/gitmerge.el index 4197ac37195..1e92c8c119f 100644 --- a/admin/gitmerge.el +++ b/admin/gitmerge.el | |||
| @@ -183,7 +183,7 @@ if and why this commit should be skipped." | |||
| 183 | ;; Go through the log and remember all commits that match | 183 | ;; Go through the log and remember all commits that match |
| 184 | ;; `gitmerge-skip-regexp' or are marked by --cherry-mark. | 184 | ;; `gitmerge-skip-regexp' or are marked by --cherry-mark. |
| 185 | (with-temp-buffer | 185 | (with-temp-buffer |
| 186 | (call-process "git" nil t nil "log" "--cherry-mark" | 186 | (call-process "git" nil t nil "log" "--cherry-mark" "--left-only" |
| 187 | (concat from "..." (car (vc-git-branches)))) | 187 | (concat from "..." (car (vc-git-branches)))) |
| 188 | (goto-char (point-max)) | 188 | (goto-char (point-max)) |
| 189 | (while (re-search-backward "^commit \\(.+\\) \\([0-9a-f]+\\).*" nil t) | 189 | (while (re-search-backward "^commit \\(.+\\) \\([0-9a-f]+\\).*" nil t) |
| @@ -206,9 +206,9 @@ if and why this commit should be skipped." | |||
| 206 | "Create the buffer for choosing commits." | 206 | "Create the buffer for choosing commits." |
| 207 | (with-current-buffer (get-buffer-create gitmerge-buffer) | 207 | (with-current-buffer (get-buffer-create gitmerge-buffer) |
| 208 | (erase-buffer) | 208 | (erase-buffer) |
| 209 | (call-process "git" nil t nil "log" | 209 | (call-process "git" nil t nil "log" "--left-only" |
| 210 | "--pretty=format:%h %<(20,trunc) %an: %<(100,trunc) %s" | 210 | "--pretty=format:%h %<(20,trunc) %an: %<(100,trunc) %s" |
| 211 | from (concat "^" (car (vc-git-branches)))) | 211 | (concat from "..." (car (vc-git-branches)))) |
| 212 | (goto-char (point-min)) | 212 | (goto-char (point-min)) |
| 213 | (while (looking-at "^\\([a-f0-9]+\\)") | 213 | (while (looking-at "^\\([a-f0-9]+\\)") |
| 214 | (let ((skipreason (gitmerge-skip-commit-p (match-string 1) commits))) | 214 | (let ((skipreason (gitmerge-skip-commit-p (match-string 1) commits))) |