Skip to content

sequencer: remove unnecessary variable setting #1922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

newren
Copy link

@newren newren commented May 14, 2025

Random thing I noticed a few years ago, I believe while investigating our tangled web of revision fields and parsing. Either way, it's still valid and I'm finally sending it upstream.

Copy link

gitgitgadget bot commented May 14, 2025

There are issues in commit 4183bb9:
sequencer: remove unnecessary variable setting
Commit not signed off

@newren newren force-pushed the sequencer-remove-unnecessary-setting branch 3 times, most recently from 8b54de6 to 3501d95 Compare May 15, 2025 18:00
revs.pretty_given is only ever read in builtin/log.c, and nothing from
builtin/log.c is ever called from sequencer.c.  So setting this variable
cannot do anything.

This was introduced in commit 62db524 ("rebase -i: generate the
script via rebase--helper", 2017-07-14), which, although `git rev-list`
was in use at the time the commit message talks about how the logic had
been based on `git log`.  Because of this, I am guessing this line was
copied or ported from part of builtin/log.c without recognizing that
this line was not doing anything and could be removed.

It's certainly not doing anything now, though, so remove it.

Signed-off-by: Elijah Newren <[email protected]>
@newren newren force-pushed the sequencer-remove-unnecessary-setting branch from 3501d95 to 53c89cf Compare May 17, 2025 17:45
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.

1 participant