Skip to content

Should default value of 'from-hash' in 'git ghost push' be auto resolved value?? #16

@everpeace

Description

@everpeace

currently 'from-hash''s defualt value is HEAD.

$ git ghost push --help
...
Usage:
  git-ghost push [from-hash(default=HEAD)] [flags]

However, if user's working repo is like

* Unsataged changes
* commtA [HEAD]
* commitB [origin/master]
I initial

git ghost push outputs commitA __diff_hash__. but below will fail

git clone
git checkout commitA
git ghost pull commitA __diff_hash__ # failed!!!

So, from-hash's default value should be auto resolved to commitA ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions