Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find instance of string in git core with 'git grep'

Tags:

git

github

I found a minor issue in git (bad Spanish translation) and reported it vita the git mailing list.

I was told by a developer that it would be great if I could: clone the git repo, find the files that contain the bad translation using git grep, patch it, and make a commit.

The thing is that using git grep I find no files where the bad translation could be.

Precisely, this is the bad translation:

Su rama está delante de <<origin/master<< para 6 commits.

and it should say:

Su rama está delante de <<origin/master<< por 6 commits.

(ie: parashould be por).

To locate the sentence, I've tried:

git grep 'delante'
git grep 'delante' -- '*.[ch]'

as shown in the examples of git-grep but both commands come back empty.

What am I doing wrong? I'm using git version 1.9.1 BTW.

like image 592
Gabriel Avatar asked Apr 16 '26 01:04

Gabriel


1 Answers

Apparently the issue was that the sentence is not in git itself but rather in its Spanish Ubuntu translation: https://translations.launchpad.net/ubuntu/quantal/+source/git/+pots/git/es/+filter?person=franciscomol

I've proposed the fixed translation over there.

like image 163
Gabriel Avatar answered Apr 18 '26 15:04

Gabriel