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

Fix incorrect kart reset hint in status responses. #426

Closed
hamishcampbell opened this issue May 13, 2021 · 0 comments
Closed

Fix incorrect kart reset hint in status responses. #426

hamishcampbell opened this issue May 13, 2021 · 0 comments

Comments

@hamishcampbell
Copy link
Member

Kart v0.9.1.dev0+ci.2237.git0e0a8ed3, Copyright (c) Kart Contributors
» GDAL v3.2.0; PROJ v6.3.0
» PyGit2 v1.3.0; Libgit2 v1.1.0; Git v2.31.1
» SQLAlchemy v1.4.11; pysqlite3 v2.6.0/v3.31.1; SpatiaLite v5.0.0; Libpq v13.0.2
» SpatialIndex v1.9.3

If you have uncommitted working copy changes and use status you will a message like so:

$ kart status
On branch main

Changes in working copy:
  (use "kart commit" to commit)
  (use "kart reset" to discard changes)
...

However kart reset does not work here.

$ kart reset
Usage: kart reset [OPTIONS] REFISH
Try 'kart reset --help' for help.
Error: Missing argument 'REFISH'

IIRC reset was re-worked to match the equivalent Git command, and the correct message here should be:

use "kart restore" to discard changes.

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

No branches or pull requests

2 participants