Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with -C option? #27

Open
pirklbauer31 opened this issue Aug 2, 2016 · 3 comments
Open

Does not work with -C option? #27

pirklbauer31 opened this issue Aug 2, 2016 · 3 comments

Comments

@pirklbauer31
Copy link

Hey,

I'm not sure if you're still working on this thing but I found it and could really use it for a project of mine.
The problem is, that i need to call the script from another directory just like in
git -C diff master

This probably does not work with your script, do you have any Idea or a workaround?

@scottgonzalez
Copy link
Owner

Can you explain some more? git -C diff master is not a diff command. git diff -C master is, and seems to work just fine.

@scottgonzalez
Copy link
Owner

Do you mean git -C <path> diff master? pretty-diff is a replacement for git-diff, so git -C <path> diff isn't supported. We could probably support this by allowing a diff to be piped into pretty-diff so you could use git -C <path> diff master | pretty-diff. Would that work for you?

@pirklbauer31
Copy link
Author

pirklbauer31 commented Aug 2, 2016

"so you could use git -C diff master | pretty-diff"
Yeah something like that is exactly what i need
I need to be able to call git diff from another directory (just the way you suggested) and get the pretty output
As of now piping it like this isn't supported, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants