Comments (6)
Would you mind giving an example? Having a hard time understanding what this means in relation to feature/fix/improvement.
from commit-comments.
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.
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.
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.
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.
@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)
- Files that aren't in the commit are searched for commit comments HOT 9
- Multiline commit messages HOT 1
- Use `git grep` instead of external tools
- Any plans to support Windows?
- have GNU grep 2.20, but get "grep: Invalid range end"
- OSX: sed -r isn't available HOT 3
- pcregrep not found in post-commit HOT 6
- Overzealous commits when using `git add --patch` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commit-comments.