question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git:diff - adding --patience option

See original GitHub issue

Hello! I am used to work with --patience option, because many times it produces an easier to read diff.

Is there any way I can add this to all the diff operations executed?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stdedoscommented, Oct 28, 2016

Oh! My bad in reading the settings. File. Thank you for the reference though, it cleaned up my head.

I thought it would also look like, eg: git log --patience “the rest”

0reactions
asfaltboycommented, Oct 28, 2016

@stdedos if you could kindly clarify what you expect from this feature that is not provided by “global_flags”? There is nothing inherently wrong with using this setting.

In other words, if you always include this flag, simply edit your GitSavvy User settings to include:

"global_flags": {
    "diff": ["--patience"]
}

Otherwise, we’d appreciate if you could describe your optimal expected solution.

related to #430

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - diff-options Documentation
Use "patience diff" algorithm when generating patches. ... Similar to --stat , but shows number of added and deleted lines in decimal notation...
Read more >
Use Git's patience diff algorithm for interactive add
Background: I'm working with some XML files, and git diff 's normal algorithm produces pretty poor diffs due to "misaligned" entry/exit tags. If ......
Read more >
Provide option to use "patience" diff when reviewing PRs
It would be very helpful, in situations like this, to be able to toggle the PR changes view to "patience" mode so I...
Read more >
133 Add an option to use the patience diff algorithm
I have used patience diff as part of git, using git diff --patience. I used it when git's default diff algorithm produced undesirable...
Read more >
When to Use Each of the Git Diff Algorithms
‐‐diff-algorithm=patience · Reordering code/content and myers diff matches trivial lines · The same lines are added and removed in the same file ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found