Skip to content
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

Reintroduce support for kart log --graph #784

Merged
merged 1 commit into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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