Skip to content

Add line numbers to human-readable diff output#653

Open
BlackBuck wants to merge 1 commit into
homeport:mainfrom
BlackBuck:feature/line-numbers
Open

Add line numbers to human-readable diff output#653
BlackBuck wants to merge 1 commit into
homeport:mainfrom
BlackBuck:feature/line-numbers

Conversation

@BlackBuck

@BlackBuck BlackBuck commented May 15, 2026

Copy link
Copy Markdown

Provide line numbers already present in original diff.Details array

An optional flag --line-numbers (shortcut -n) enables line numbers in the output. For modification, both source and target lines are shown. For addition and removals, relevant line numbers are shown.

Line information was already captured by the YAML parser. This implementation only leverages the already existing Line property of the Detail property of the diff interface.

Fixes #438

Provide line numbers already present in original diff.Details array

An optional flag --line-numbers (shortcut -n) enables line numbers
in the output. For modification, both source and target lines are shown.
For addition and removals, relevant line numbers are shown.

Line information was already captured by the YAML parser. This
implementation only leverages the already existing Line property of the
Detail property of the diff interface.
@BlackBuck

Copy link
Copy Markdown
Author

Hi @HeavyWombat could you please review the changes whenever you find time? 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.

Include line number

1 participant