Package: file
Version: 4.20-4
Severity: wishlist

I don't know if this is possible, but could file be taught to recognize diff 
files? I'm thinking normal diffs might be hard, but unified diffs might not be 
too bad with regexs to look for "---" and "+++" on the first two lines.

There are also the various diff outputs from revision control systems like 
RCS, CVS, etc.

I don't think it's reasonable to try and find diffs that aren't at the start 
of the file, and likewise non-diff stuff after a diff at the start of a file 
is probably safe to ignore (as long as the regexs matching the diff are good 
and that part _really_ is a diff).

The reason I thought of this is that it would eventually be nice to be able to 
identify the diff.gz's that are part of Debian source packages as compressed 
diffs. (I don't know if it will make sense to figure out if they are 
_Debian_source_ diff.gz's or not, I guess you could see if the diff created 
files in a debian/ dir).

-- 
Matt Taggart
[EMAIL PROTECTED]




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to