git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 0/4] git-gui blame: use textconv

From
CPClément Poulain <clement.poulain@ensimag.imag.fr>
Date
Jun 9, 2010, 17:02 UTC
Message-ID
<1276102929-31712-1-git-send-email-clement.poulain@ensimag.imag.fr>
This patch adds support of textconv to git-gui blame.

It is based on our previous work which adds textconv support to blame: http://mid.gmane.org/1275921713-3277-1-git-send-email-axel.bonnet@ensimag.imag.fr It also uses a git-gui patch done by Clemens Buchacher which adds textconv support to git-gui diff: http://mid.gmane.org/20100415193944.GA5848@localhost.

git-gui blame is based on cat-file to get the content of the file in different revisions, so the patch adds textconv support to cat-file. The first part of this patch adds get_sha1_with_context() in order to know the pathname of the concerned blob, as textconv needs it to work.

This third version corrects one bug and some compilation warnings
Clément Poulain (4):
  sha1_name: add get_sha1_with_context()
  textconv: support for cat_file
  git gui: use textconv filter for diff and blame
  t/t8007: test textconv support for cat-file
 builtin.h                    |    2 +
 builtin/blame.c              |    8 ++--
 builtin/cat-file.c           |   33 ++++++++++++++++++--
 cache.h                      |   11 ++++++
 git-gui/git-gui.sh           |   28 ++++++++++++++++-
 git-gui/lib/blame.tcl        |   21 +++++++++++-
 git-gui/lib/diff.tcl         |    5 ++-
 git-gui/lib/option.tcl       |    1 +
 sha1_name.c                  |   31 +++++++++++++++---
 t/t8007-cat-file-textconv.sh |   70 ++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 194 insertions(+), 16 deletions(-)
 create mode 100755 t/t8007-cat-file-textconv.sh
Next: Clément Poulain
Message 1 of 9 in “git-gui blame: use textconv”
  1. 0/4 git-gui blame: use textconvClément Poulain, Jun 9, 2010
  2. 1/4 sha1_name: add get_sha1_with_context()Clément Poulain, Jun 9, 2010
  3. 2/4 textconv: support for cat_fileClément Poulain, Jun 9, 2010
  4. 3/4 git gui: use textconv filter for diff and blameClément Poulain, Jun 9, 2010
  5. 4/4 t/t8007: test textconv support for cat-fileClément Poulain, Jun 9, 2010
  6. Clément PoulainJun 14, 2010
  7. Junio C HamanoJun 14, 2010
  8. Matthieu MoyJun 16, 2010
  9. 2/4 textconv: support for cat_fileClément Poulain, Jun 15, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.