Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> git branch

Yep. And to list worktrees you use:

    $ git worktree
    error: need a subcommand
Oh woops. But to show all refs instead of just the branches you surely just:

    $ git show-ref
    0003692409f153dd725b3455dfc2e128276cfbe2 refs/branchless/0003692409f153dd725b3455dfc2e128276cfbe2
No. But I can just cut(1) out that SHA1...

These SQL-like commands are probably meant to be familiar and guessable. Not terse. And then you can change the query instead of using all sorts of utility commands in some ad hoc pipeline (or look up whatever switch they threw in to turn on and off things like SHA1 as first column). If you don’t like the latter.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: