Gitweb 1.7.5 and Textconv Configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]