You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add option to render part of the diff (without the header) #3
In terms of actually "fixing" this though, I'm wondering if it's not better to somehow configure a "diff tool" for git using something like git config --global diff.external ... - whether perhaps we can pass this as a parameter or point the user to configure this?
If you want to work around this quickly for now though you could maybe use {{{{ shellOutput ./gitDiffCustom.sh filepath/xyz.txt }}}?
I've managed to make it work with gch-end-2 gch-begin-3 but I'm thinking of it a temp solution. Would love to contribute to the project adding this as an option to diff
I think your concern with using the gch-end-*/ghc-begin-* is the hardcoded chapter numbers - if it's something different let me know. In which case possibly a solution would be to reference the current chapter number (this is yet to be implemented) via a shell variable.
Activity
chrissound commentedon Dec 30, 2019
Ha! Something that annoyed me as well - in fact https://stackoverflow.com/questions/47496283/how-do-i-exclude-the-patch-header-with-git-diff!
In terms of actually "fixing" this though, I'm wondering if it's not better to somehow configure a "diff tool" for git using something like
git config --global diff.external ...- whether perhaps we can pass this as a parameter or point the user to configure this?If you want to work around this quickly for now though you could maybe use
{{{{ shellOutput ./gitDiffCustom.sh filepath/xyz.txt }}}?EncodePanda commentedon Dec 15, 2020
I have
but that only worked till I add next commit
is there some way to reference the beginning and end tag?
EncodePanda commentedon Dec 15, 2020
I've managed to make it work with
gch-end-2 gch-begin-3but I'm thinking of it a temp solution. Would love to contribute to the project adding this as an option to diffchrissound commentedon Dec 15, 2020
I think your concern with using the
gch-end-*/ghc-begin-*is the hardcoded chapter numbers - if it's something different let me know. In which case possibly a solution would be to reference the current chapter number (this is yet to be implemented) via a shell variable.For example:
ghc-begin-$CHAPTER_INDEX