Giter VIP home page Giter VIP logo

git-hist's Introduction

git-hist's People

Contributors

arkark avatar cympfh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

cympfh klimit

git-hist's Issues

`config value 'safe.directory' was not found`

Probably everybody else has already dealt with this, but I work in an environment which lags behind the latest releases of things like Git by quite a ways.

Building git-hist 1.0.5 with cargo and Rust 1.71 is successful, but I receive this error message upon actually running git hist FILENAME:

$ git-hist FILENAME
Error: Faild to open a git repository for the current directory

Caused by:
    config value 'safe.directory' was not found; class=Config (7); code=NotFound (-3)

I believe this relates to a recently-discovered security vulnerability in Git, and a resulting workaround in git2-rs. I'll update the issue description with references as I do more research.

As a temporary workaround, you can define GIT_CEILING_DIRECTORIES as described here. Edit: git2-rs really wants what it says it wants, which is to see safe.directory for the current directory in ~/.gitconfig. Here's how to add that:

$ git config --add --global safe.directory $PWD

Possibly related

Exit without returning the cursor when an error occurs

Example

$  cargo run -- screenshots/screenshot_01.png

Then, the following error occurs (this error is an expected behavior):

thread 'main' panicked at 'Trying to access position outside the buffer: x=114, y=10, area=Rect { x: 0, y: 0, width: 114, height: 44 }', /home/ark/.cargo/registry/src/github.com-1ecc6299db9ec823/tui-0.14.0/src/buffer.rs:217:9
                                                                                                               note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After the exit, the cursor on a terminal remains hidden.

Feature requests

  • optional taller commit information box

    • option to scroll in the commit information
  • optional automatically jump to first diff

    • remember the position of the file already visited
  • jump to next/previous diff

  • show how many changes between the versions

    • show new/deleted files
    • show if it's a merge commit
  • show multiple files

    • in tabs or split
    • when changing revision, stay on same file but show tabs for the other modified files

Add some command options

  • --date-format
  • Use whether authors or committers for names and dates
  • --beyond-last-line
  • --emphasize-diff
  • --full-hash: Show full commit hashes rather than abbreviated commit hashes

Installation errors for Mac

In Mac, an error occurs while installing because openssl command is not OpenSSL, but LibreSSL by default.

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.