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

Gitweb 1.7.5 and Textconv Configuration

From
Al Haraka <alharaka@gmail.com>
Date
Jul 2, 2011, 09:50 UTC
Message-ID
<CALWDD1x-_rEx+c9bpAgVk-hvnGz1bt0mbJoDkSjZkbe=gLscUg@mail.gmail.com>
All,

I am sorry to bother the list with this question, but I have spent a lot of time searching and have never really found what I was looking for. No one had answers to my question on IRC either. I am running git/gitweb 1.7.5 on shared hosting (Dreamhost, if that matters). I compiled it and followed a tutorial (https://github.com/tmacam/private-git-on-dreamhost) on setting it up in my environment. It worked great, but I have some stuff that is not source code, namely PDF's and ODP/ODT/ODS files I want to see changes from beyond knowing they are binary files. Enter the official wiki page explaining textconv (https://git.wiki.kernel.org/index.php/GitTips#How_to_use_git_to_track_OpenDocument_.28OpenOffice.2C_Koffice.29_files.3F).

So, I tried different variations of this, specifically for repos. Now, I have tried it globally as that was tedious and it was not working anyway. That works some of the time if I try commands over the console (git log -p for quick testing), but never in Gitweb. It continues to only say they are differing binary files. Does Gitweb 1.7.5 support the use of this? Is there something special I must do? Below is my current config:

[dreamhost-server]$ git config --list --global diff.odf.textconv=odt2txt diff.odf.binary=false diff.pdf.textconv=pdftotext diff.pdf.binary=false core.attributesfile=~/.gitattributes [dreamhost-server]$ more ~/.gitattributes *.odf diff=odf *.odt diff=odf *.odp diff=odf *.pdf diff=pdf [jabbah]$ more ~/repos/gitweb_config.perl # where is the git binary? $GIT = "/home/dreamhost_account/opt/bin/git"; # where are our git project repositories? $projectroot = $ENV{'GIT_PROJECT_ROOT'}; # what do we call our projects in the gitweb UI? $home_link_str = "~"; # where are the files we need for gitweb to display? @stylesheets = ("gitweb.css"); $logo = "git-logo.png"; $favicon = "/favicon.png"; # what do we call this site? $site_name = "my personal git repos";

The diff.<driver>.binary addition is new. I tried with or without them, hoping mention of this on a mailing list thread from a while back might help. It was all in vain. I also tried fiddling with $diff_opts for Gitweb after scanning the man page for git-diff, but I am not sure if there is anything helpful I missed. I no this is a newbish question, I am sure, so I apologize in advance.

Best, _AJS

Next: Jeff King
Message 1 of 13 in “Gitweb 1.7.5 and Textconv Configuration”
  1. Al HarakaJul 2, 2011
  2. Jeff KingJul 2, 2011
  3. Jeff KingJul 2, 2011
  4. Al HarakaJul 2, 2011
  5. Jeff KingJul 2, 2011
  6. Al HarakaJul 2, 2011
  7. Jeff KingJul 2, 2011
  8. Jakub NarebskiJul 2, 2011
  9. Jeff KingJul 2, 2011
  10. Jakub NarebskiJul 2, 2011
  11. Al HarakaJul 2, 2011
  12. Jakub NarebskiJul 6, 2011
  13. docs: document --textconv diff optionJeff King, Jul 6, 2011

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.