From: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: git diff --chunk-pickaxe?
Date: Mon, 22 Jun 2009 22:07:22 +1000 [thread overview]
Message-ID: <fcaeb9bf0906220507q45a61dc3w25ad41a4a65a2d5a@mail.gmail.com> (raw)
Hi,
Another use case for Git. This time for .po translations. In GNOME,
.po files are usually updated with intltool, then translations are
updated manually by translators. Intltool updates comments too and
makes it extremely hard to review translations, something like this:
-#. http://en.wikipedia.org/wiki/HD_DVD
#: ../data/nautilus.xml.in.h:8
+#. http://en.wikipedia.org/wiki/HD_DVD
msgid "Blank HD DVD Disc"
msgstr "Đĩa HD DVD trắng"
-#. http://en.wikipedia.org/wiki/Blu-ray_Disc
#: ../data/nautilus.xml.in.h:10
+#. http://en.wikipedia.org/wiki/Blu-ray_Disc
msgid "Blu-Ray Video"
msgstr "Phim Blu-Ray"
-#. http://en.wikipedia.org/wiki/Red_Book_(audio_CD_standard)
#: ../data/nautilus.xml.in.h:12
+#. http://en.wikipedia.org/wiki/Red_Book_(audio_CD_standard)
msgid "Compact Disc Audio"
msgstr "Đĩa nhạc Compact Disc"
What I want is only show diff chunks that add or remove a line that
does not start with '#', something like a chunk-level pickaxe. Any
pointer where to start? It looks like I can start from
xdi_diff_outf(). Just wanted to make sure I won't follow a wrong way
from the beginning.
--
Duy
next reply other threads:[~2009-06-22 12:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 12:07 Nguyen Thai Ngoc Duy [this message]
2009-06-22 12:27 ` git diff --chunk-pickaxe? Jakub Narebski
2009-06-22 12:48 ` René Scharfe
2009-06-22 13:04 ` Nguyen Thai Ngoc Duy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcaeb9bf0906220507q45a61dc3w25ad41a4a65a2d5a@mail.gmail.com \
--to=pclouds@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).