Giter Site home page Giter Site logo

git open commit about git-open HOT 8 OPEN

paulirish avatar paulirish commented on August 25, 2024 7
git open commit

from git-open.

Comments (8)

skypesky avatar skypesky commented on August 25, 2024 1

Does anyone still need this feature?

from git-open.

ffes avatar ffes commented on August 25, 2024

Good idea!

But somebody has to do it 😉

from git-open.

derimagia avatar derimagia commented on August 25, 2024

It should be able to auto-detect (see if the commit exists) maybe? Instead of having a flag for it

from git-open.

iliaskarim avatar iliaskarim commented on August 25, 2024

Feature request: git open opens the latest pull request opened for the current branch.

from git-open.

paulirish avatar paulirish commented on August 25, 2024

@ILI4S it was attempted here #53 but currently resolving the pull request URL is nontrivial, so we prefer one of two options:

  1. load the branch page (which has a link to the PR in the ui):
    image

  2. use issue branch naming and use the --issue flag, as documented in the readme.

from git-open.

mlncn avatar mlncn commented on August 25, 2024

Pull request #144 added this option:

    -c, --commit          open current commit

As documented it is only for the current commit; trying to open a commit with an explicit value results in an error:

git-open --commit=8bb53b52560ea
error: option `commit' takes no value

And git-open -c 8bb53b52560ea results in a nonsense URL like https://8bb53b52560ea/8bb53b52560ea/commit/56ddf13245a99490b5c079cdc4ab66b77809dae4

We may have to change the way the current commit works, or even with the flag do what derimagia said and check values so that existing commits aren't misinterpreted.

from git-open.

wingleung avatar wingleung commented on August 25, 2024

PR #155 allows me to pass a specific commit hash

from git-open.

skypesky avatar skypesky commented on August 25, 2024

done in #skypesky/to-where-cli#45

npm cli: npmjs.com/package/to-where-cli

from git-open.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.