Comments (11)
@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.
from diff2html-cli.
still nothing when running with diff2html -- HEAD^
from diff2html-cli.
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.
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^
:
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.
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.
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.
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.
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.
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.
You must have something like color.ui=always
in $HOME/.gitconfig. try changing to color.ui=auto
from diff2html-cli.
Related Issues (20)
- ignore.map is not a function HOT 2
- -M flag exists? HOT 1
- Dependency update? HOT 3
- Unescaped broken HTML in the output HOT 6
- Selecting an output file is not overriding the preview open HOT 1
- ENOBUFS error when comparing large commits HOT 3
- Cannot make to work API from imported library HOT 9
- "--ig" argument leads to git diff error HOT 7
- diff2html is missing file content toggle HOT 1
- --title option not working HOT 2
- miss-align when show some diff file HOT 4
- Still running out of heap memory while allowing node 60GB HOT 4
- '--renderNothingWhenEmpty' didn't work when using 'stdin' as input HOT 1
- Impossible to create a diff from file – 5.2.6
- Can't run diff2html-cli on linux docker container HOT 1
- Include commit details in diff content HOT 4
- highlight.js is causing error for diff2html-ui-base.ts in angular5 HOT 4
- Replace deprecated `request` by other more appropriate library HOT 1
- Update coverage reporting to Codacy HOT 1
- Return code should be non-zero on error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff2html-cli.