Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wikiblame #218

Open
hajika opened this issue May 20, 2017 · 3 comments
Open

wikiblame #218

hajika opened this issue May 20, 2017 · 3 comments

Comments

@hajika
Copy link
Contributor

hajika commented May 20, 2017

Wikiblame is a tool that searches for the first occurence of a string. That could be easily implemented with this git Wiki, because there is a command git log -S 'string' --reverse that searches for strings that are mentioned in commits. First returned commit (with --reverse) should be the first occurence. But there might be others because it has been deleted or changed in the meantime, so there would still be some fiddling to find and present the result.

@claudioc
Copy link
Owner

Hey @hajika, I don't quite understand the use case and what I/we should do to Jingo? Mind expanding a little bit? What problem does it solve?

@hajika
Copy link
Contributor Author

hajika commented May 29, 2017

ok Iam sorry, that was probably somehow confusing. The problem is, that you sometimes need to search for the first occurence of a specific text snippet within the wiki. Or more precisely, you want to know who the hell was responsible for that stupid sentence on that wikipage. That is, where Wikiblame can help you with for Wikipedia for example.

In the Jingo Git Repo you can simply search for git log -S 'string' --reverse to get the first occurence of a string (and the author), that would be a nice build in function for jingo.

@claudioc
Copy link
Owner

It looks like a 2-step effort: first you git log -S..., then you get the commit id (and author) and then you git show <commit id> | grep <string> to finally get the snippet of text, if I understand correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants