Skip to content

Commit

Permalink
Add '--topo-order' (topological order) option to 'git log' command (#675
Browse files Browse the repository at this point in the history
)

This will order commits as per their order of application to the
codebase, rather than the chronological order of the commit dates. These
orderings can differ, particularly when it comes to merged branches. I
think that generally what we want when they differ is the topological
order, rather than the chronological order.
  • Loading branch information
davidrunger authored Sep 8, 2024
1 parent e3dfefe commit f200092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Unreleased
[no unreleased changes yet]
- Add `--topo-order` (topological order) option to `git log` command

## v0.12.1 (2024-08-05)
- **Performance fix:** only search over renames when a path is given.
Expand Down
1 change: 1 addition & 0 deletions lib/fcom/querier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def query
--format="commit %s|%H|%an|%cr (%ci)"
--patch
--full-diff
--topo-order
--no-textconv
#{%(--author="#{author}") if author}
#{days_limiter}
Expand Down
1 change: 1 addition & 0 deletions spec/fcom/querier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
--format="commit %s|%H|%an|%cr (%ci)"
--patch
--full-diff
--topo-order
--no-textconv
--author="David Runger"
HEAD
Expand Down

0 comments on commit f200092

Please sign in to comment.