diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ca6897..c8237c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/fcom/querier.rb b/lib/fcom/querier.rb index 8337506..5596586 100644 --- a/lib/fcom/querier.rb +++ b/lib/fcom/querier.rb @@ -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} diff --git a/spec/fcom/querier_spec.rb b/spec/fcom/querier_spec.rb index 050b696..497e20e 100644 --- a/spec/fcom/querier_spec.rb +++ b/spec/fcom/querier_spec.rb @@ -32,6 +32,7 @@ --format="commit %s|%H|%an|%cr (%ci)" --patch --full-diff + --topo-order --no-textconv --author="David Runger" HEAD