Giter VIP home page Giter VIP logo

gig's People

Contributors

dependabot[bot] avatar fhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

testacc-art

gig's Issues

local clone requires absolute path

git converts the relative path to an absolute one:

$ git clone one two
Cloning into 'two'...
done.
$ cd two/
$ git remote -v
origin	/tmp/one (fetch)
origin	/tmp/one (push)
$ git pull
Already up to date.

However with gig it's not converted:

$ gig clone one two
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
$ cd two
$ git remote -v
origin	one (fetch)
origin	one (push)
$ gig pull
Error: repository not found

I'd rather fix this in go-git, especially since the function to check for local URL is part of an internal package.

Worktree.Status with diff

I see you used Worktree.Status with git commit:

status, err := w.Status()

and with git status:

status, err := w.Status()

but with git diff you are manually checking the content difference:

gig/cli/diff.go

Line 129 in dd59dc9

if fromContent != toContent {

when I think Worktree.Status could do that for you. Is this an oversight, or is Worktree.Status a bad option for some reason?

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.