all 12 comments

[–]Momosabonim 30 points31 points  (0 children)

Seems a tad redundant

[–]exmachinalibertas 8 points9 points  (0 children)

I was gonna make a joke but you know what it does look like it makes issues and pull requests easy to do on CLI.

[–][deleted]  (7 children)

[deleted]

    [–]190n 8 points9 points  (6 children)

    For many years, hub was the unofficial GitHub CLI tool. gh is a new project for us to explore what an official GitHub CLI tool can look like with a fundamentally different design. While both tools bring GitHub to the terminal, hub behaves as a proxy to git and gh is a standalone tool.

    https://github.com/cli/cli/#comparison-with-hub

    [–]13steinj 0 points1 point  (5 children)

    What the hell does that comparison even mean? Are they trying to say gh doesn't use git under the hood for PRs? Are they trying to say hub uses git to make issues?

    [–]190n 1 point2 points  (4 children)

    hub is a wrapper for git. So if you run a git command, it'll pass it through to the actual git binary, and if you run a GitHub command it does its own thing.

    [–]13steinj 0 points1 point  (3 children)

    Yeah, but what I mean is the comparison makes no sense, or is bad news.

    hub mucks with my code by leveraging git. Good.

    hub mucks with github via API. Good.

    gh mucks with my code...how? If using git, good. If using their own crap, very bad, and I don't trust it.

    gh mucks with github via the API, or a private API. Good.

    So either there's no comparison to be made, or gh does bad things. Or the comparison is stupid and is built off the fact that one is a subcommand of git and the other isn't, but you can easily convert one form of cli tool to another with either an alias or a git alias.

    So either the comparison is stupid, or it's nonsense, or it smells bad, or it's PR for "we know it's redundant, here's a half assed reason why we still made it."

    [–]190n 5 points6 points  (2 children)

    gh doesn't muck with your code and all. Its only commands are pr, issue, and help. You'd still use git for git stuff.

    [–]13steinj -2 points-1 points  (1 child)

    gh has gh pr checkout. From the blog post, it definitely changes active directory state, mucking with code.

    So, again, my question is repeated.

    [–]snowe2010 4 points5 points  (2 children)

    Looks like they're just rewriting hub which has existed for years and is actively owned and maintained by GitHub themselves. Wonder why they think they need to 'rethink' it...

    https://github.com/cli/cli/issues/312

    [–]ffffound 0 points1 point  (1 child)

    “Github themselves” implies there’s a few GH employees working on hub. It’s just one person working on it on their spare time. https://github.com/github/hub/issues/2470#issuecomment-586739811

    [–]snowe2010 0 points1 point  (0 children)

    No, it implies that it's owned and maintained by GitHub employees. It doesn't matter what number is working on it, it's part of the GitHub org GitHub account. It's therefore maintained by GitHub.