Giter Club home page Giter Club logo

Comments (7)

jonas avatar jonas commented on August 25, 2024

I would prefer a future-proof solution, which can also be applied to possible new options. Something like the following perhaps:

bind generic 2 :set diff-options = "--full-diff"; :reload

Which would require

  • A new option called 'diff-options' similar to the existing 'blame-options'.
  • The possibility to bind 'tig scriptlets' to keybindings.
  • Improvements to the code reading and executing 'tig scripts'.

from tig.

vivien avatar vivien commented on August 25, 2024

I think adding user defined diff options may break some features in the diff view (e.g. --names-only or --color-words`). Am I mistaken?

from tig.

tsibley avatar tsibley commented on August 25, 2024

It's certainly possible for arbitrary diff options to break tig's parsing of the git-diff output. The same is probably true, however, of the existing blame-options.

from tig.

tsibley avatar tsibley commented on August 25, 2024

@jonas: Should diff-options replace the TIG_DIFF_OPTS environment variable, or coexist peacefully? I'd opt to replace the env var, but there may be particular value in the per-invocation uses of it.

from tig.

jonas avatar jonas commented on August 25, 2024

I don't see a reason to remove it, but we could start a deprecation process to avoid any surprises.

from tig.

tsibley avatar tsibley commented on August 25, 2024

Nod. I already have code that coexists with TIG_DIFF_OPTS, so I'm fine leaving it for now. I'll document the precedence of each method.

from tig.

jonas avatar jonas commented on August 25, 2024

Great

On Wed, Jan 23, 2013 at 11:00 PM, Thomas Sibley [email protected]:

Nod. I already have code that coexists with TIG_DIFF_OPTS, so I'm fine
leaving it for now. I'll document the precedence of each method.


Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-12636144.

Jonas Fonseca

from tig.

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.