Code Monkey home page Code Monkey logo

git-related's People

Contributors

felipec avatar m007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

git-related's Issues

Bug in range definition (maybe?)

I recently got an error out of git blame (I think)

fatal: no such path L in <arbitrary-commit-sha-out-of-the-defined-range>~

after executing

git related --roles <commit-sha-1>..<commit-sha-2>

What makes me think it is an issue with git blame is this line. But I do literally do have zero experience with ruby so I'm stuck in tracking the issue down to the real cause.

UTF-8 issues with invalid byte sequences.

Some authors with umlaut letters in their names can get author details in git blame containing invalid UTF-8, specifically if they're on strange systems like windows.
By doing line.encode! :invalid=>:replace before trying to match strings in get_blame, I've personally managed to get around that issue, but that might not be a useful fix for everyone. Anyhow, just a heads up. :)

Syntax errors

Hi,

I just cloned and installed git-related and upon executing it, I always get

git related
/home/me/bin/git-related:258: syntax error, unexpected ']'
      $base_rev = revs[1][1..]
                             ^
/home/me/bin/git-related:326: syntax error, unexpected end-of-input, expecting keyword_end

My Ruby version is

ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]

Any idea as to what the problem is?

Syntax error on 1.9.3

Most OSes ship with older versions of ruby - it would be good to make this work out of the box for people without ruby 2.

$ git related master
/Users/danielheath/.bin/git-related:71: syntax error, unexpected tLABEL
def on(short = nil, long = nil, help: nil, &block)
^
/Users/danielheath/.bin/git-related:71: Can't assign to nil
def on(short = nil, long = nil, help: nil, &block)
^

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.