git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Best way to apply textconv to a working tree file
@ 2010-06-01 13:41 Clément Poulain
  2010-06-01 16:07 ` Matthieu Moy
  2010-06-01 17:04 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Clément Poulain @ 2010-06-01 13:41 UTC (permalink / raw)
  To: git; +Cc: diane.gasselin, axel.bonnet, matthieu.moy

Hello,

In order to add textconv support to "git-gui blame", we have to run
textconv on a file which is in the working tree.
Currently, "git-gui blame" uses the Tcl function 'open' to display the
content of the working-tree file. This doesn't allow us to run textconv on
it.

We are wondering what is the best way to do the textconv. Here are some
solutions we thought about:

- For revisions, "git-gui blame" is based on "git cat-file blob
<sha1:path>". Therefore, we thought of adding a "--textconv" option on
cat-file as well as a "--working-tree" option ("git cat-file --working-tree
<file>" will display the content of <file> in the working-tree)

- Use the "-p" (pretty print) cat-file's option, with a path beginning by
./ (to avoid ambiguous name like HEAD)

- Create a "git textconv" command, to easily run textconv on any object.

Which way you think is the best?

Thanks for your time and comments.
Regards

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-02 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01 13:41 Best way to apply textconv to a working tree file Clément Poulain
2010-06-01 16:07 ` Matthieu Moy
2010-06-01 17:14   ` Jeff King
2010-06-01 17:30     ` Matthieu Moy
2010-06-01 19:50       ` Jeff King
2010-06-02 15:12         ` Clément Poulain
2010-06-01 17:04 ` Jeff King
2010-06-02  9:56   ` Clément Poulain

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).