Skip to content

Bug: Add missing nil argument to vc-jj--process-lines call#292

Merged
dgutov merged 1 commit into
dgutov:masterfrom
sharetribe:master
Jun 27, 2026
Merged

Bug: Add missing nil argument to vc-jj--process-lines call#292
dgutov merged 1 commit into
dgutov:masterfrom
sharetribe:master

Conversation

@rap1ds

@rap1ds rap1ds commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Before this change, the first argument to vc-jj--process-lines was "log". This seems wrong.

The signature of the function is: (defun vc-jj--process-lines (file-or-list &rest args))

The docstring says:

FILE-OR-LIST may be nil or non-nil. When non-nil, it should be a file or a list of files.

"log" clearly is not a file or list of files. It's the jj subcommand we aim to run.

Running the following in my repository:

(vc-jj--process-lines "log" "--no-graph" "-r" "@-" "-T" "change_id" "-n" "1") returns nil

...whereas running the following:

(vc-jj--process-lines nil "log" "--no-graph" "-r" "@-" "-T" "change_id" "-n" "1") returns the actual revision

Before this change, the first argument to `vc-jj--process-lines` was `"log"`. This seems wrong.

The signature of the function is: `(defun vc-jj--process-lines (file-or-list &rest args))`

The docstring says:

> FILE-OR-LIST may be nil or non-nil.  When non-nil, it should be a file or a list of files.

"log" clearly is not a file or list of files. It's the jj subcommand we aim to run.

Running the following in my repository:

`(vc-jj--process-lines "log" "--no-graph" "-r" "@-" "-T" "change_id" "-n" "1")` returns `nil`

...whereas running the following:

`(vc-jj--process-lines nil "log" "--no-graph" "-r" "@-" "-T" "change_id" "-n" "1")` returns the actual revision
@dgutov dgutov merged commit 2d7d071 into dgutov:master Jun 27, 2026
6 checks passed
@dgutov

dgutov commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants