Giter Club home page Giter Club logo

Comments (6)

jryio avatar jryio commented on June 1, 2024

Would you mind giving an example? Having a hard time understanding what this means in relation to feature/fix/improvement.

from commit-comments.

amichail avatar amichail commented on June 1, 2024

For each line of code in the most recent version, you could associate with it all commit comment fragments that have applied to that line in particular.

With this information, you can get a lot of motivation for why the code is the way it is via browsing/searching based on this information.

from commit-comments.

amichail avatar amichail commented on June 1, 2024

For example, you might want to search for "drag and drop" to find code fragments, possibly spread out, that collectively implement drag and drop.

from commit-comments.

jryio avatar jryio commented on June 1, 2024

Ah I think I understand (correct me if I missed it). You'd like to see a relation between the commit comments and the lines of code which they were applied to.
Then be able to search for keywords in the commit comments themselves to see the lines of code which they referenced?

If that's the case, I'm afraid that feature might be a bit out of the scope of the current Bash scripts (which only searches & replaces lines).

One solution might be to perform a grep search on the output of git log using the -A or -B options. Those might give some context to the commit comments.

from commit-comments.

amichail avatar amichail commented on June 1, 2024

So do you include the @commit comments in the code submitted? There's a lot of valuable information there with regards to the more accurate comment/lines of code mapping.

One problem with doing this though is that other developers may not be using your tool and so checking out code with @commit comments still included from the last commit would not be good.

from commit-comments.

jryio avatar jryio commented on June 1, 2024

@commit comments are removed from the code via the post-commit hook.
As far as code mapping goes, I don't see solution which does not require a database or file of some kind.

If this is just for the programmer to see cool/neat relationships between their commit comments and actual code, it might be worth file for someone else to fork this project.

from commit-comments.

Related Issues (9)

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.