Skip to content

Commit

Permalink
Merge pull request #784 from koordinates/log-graph
Browse files Browse the repository at this point in the history
Reintroduce support for `kart log --graph`
  • Loading branch information
olsen232 authored Feb 3, 2023
2 parents 7ffdadb + fc22e6c commit 3989b9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ _When adding new entries to the changelog, please include issue/PR numbers where

## 0.12.1

- Modified `point-cloud-import --replace-existing` to reuse previously imported tiles, rather than reimport them, if tiles that have already been imported are imported again - potentially saving time and disk space. Note that `point-cloud-import --update-existing` already had this optimization.
- Modified `point-cloud-import --replace-existing` to reuse previously imported tiles, rather than reimport them, if tiles that have already been imported are imported again - potentially saving time and disk space. Note that `point-cloud-import --update-existing` already had this optimization. [#783](https://github.com/koordinates/kart/pull/783)
- Reintroduced support for `log --graph`.

## 0.12.0

Expand All @@ -32,6 +33,7 @@ _When adding new entries to the changelog, please include issue/PR numbers where
- Support for changing the primary key column of an existing dataset. [#238](https://github.com/koordinates/kart/issues/238)
- Help for the user get the working copy back into a valid state if a crash or similar causes it to become out of sync with the Kart repo. [#751](https://github.com/koordinates/kart/pull/751)
- Enable the background CLI helper on Linux & macOS in CI builds. The helper improves CLI performance significantly. [#776](https://github.com/koordinates/kart/pull/776)
- Dropped support for a variety of `kart log` options that were previously being forwarded to Git. [#508](https://github.com/koordinates/kart/issues/508)

## 0.11.5

Expand Down
11 changes: 11 additions & 0 deletions kart/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ def convert_user_patterns_to_raw_paths(paths, repo, commits):
"Can be used multiple times."
),
)
@click.option(
"--graph",
is_flag=True,
help=(
"Draw a text-based graphical representation of the commit history on the left hand side of the output. "
"This may cause extra lines to be printed in between commits, in order for the graph history to be drawn properly. "
),
)
@click.argument(
"args",
metavar="[REVISIONS] [--] [FILTERS]",
Expand Down Expand Up @@ -262,6 +270,9 @@ def log(
run("git", git_args)

elif output_type in ("json", "json-lines"):
if kwargs.get("graph"):
raise click.UsageError("JSON output and --graph and not compatible")

try:
cmd = [
"git",
Expand Down

0 comments on commit 3989b9c

Please sign in to comment.