GithubHelp home page GithubHelp logo

Comments (11)

thatkookooguy avatar thatkookooguy commented on May 26, 2024 1

@rtfpessoa no, I don't unfortunately :-) (don't have any setting for color in my $HOME/.gitconfig)

but I think it will be good practice to add that flag (--no-color) to diff2html. It shouldn't break if colors are enabled in any way.

opened a PR with the flag added.

from diff2html-cli.

rtfpessoa avatar rtfpessoa commented on May 26, 2024

from diff2html-cli.

thatkookooguy avatar thatkookooguy commented on May 26, 2024

still nothing when running with diff2html -- HEAD^
screen shot 2017-12-25 at 15 50 11

from diff2html-cli.

rtfpessoa avatar rtfpessoa commented on May 26, 2024

That is quite weird, I cannot seem to replicate that even in the same OS.

Still, you can always do git diff HEAD^ | diff2html -i stdin.

from diff2html-cli.

thatkookooguy avatar thatkookooguy commented on May 26, 2024

git diff HEAD^ | diff2html -i stdin still opens the web browser with Files changed (0)

git diff HEAD^ do return an output

and here's the output for pretty-diff HEAD^:
screen shot 2017-12-25 at 15 55 32

I have 6 changed files and 1 new file. don't know if that helps, just thought about throwing everything out there :-)

from diff2html-cli.

rtfpessoa avatar rtfpessoa commented on May 26, 2024

Then, send me version you are using (diff2html --version) and the file output of git diff HEAD^ > example.diff so I can check.

from diff2html-cli.

thatkookooguy avatar thatkookooguy commented on May 26, 2024

version: 2.5.3

and here's the example.diff file

btw, same thing happens when I try and run diff2html -i file -- example.diff with the file I created

from diff2html-cli.

rtfpessoa avatar rtfpessoa commented on May 26, 2024

Did you copy the output from your terminal, or did you pipe it like I said in the previous message?

I ask that because the output has color codes from your terminal which are definitely making the diff unusable.

Also do you have any kind of .gitconfig?

from diff2html-cli.

thatkookooguy avatar thatkookooguy commented on May 26, 2024

used the command you sent me

yes, I have a .gitignore file in my repo.

here is the public repo I'm working on: https://github.com/Kibibit/kibibit-cli

I also committed the changes I have locally to a branch called diff2html so you can check out my specific changes. Maybe you'll be able to reproduce it with the same files + same changes
Kibibit/kibibit-cli@be07fc8

from diff2html-cli.

thatkookooguy avatar thatkookooguy commented on May 26, 2024

well.... I figured out from your answer that the colors mess things up.

tried running git diff --no-color HEAD^ | diff2html -i stdin and everything worked as expected

from diff2html-cli.

rtfpessoa avatar rtfpessoa commented on May 26, 2024

You must have something like color.ui=always in $HOME/.gitconfig. try changing to color.ui=auto

from diff2html-cli.

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.