Implement -r / --reference option in compat/date (patch from Olivier Mehani <shtrom-savanah@ssji.net>)
Fix typo in doc/quilt.1.in
patches command: Commit 2e581933a introduced a bug in scanning unapplied patches which lead to missed matches
patches command: Prevent false matches in unapplied patches for patches which delete files
patches command: Also match deleted files in unapplied patches at the cost of more possible false matches
Enable quilt to handle compressed tarballs and patches that were compressed with lzma or xz
re-activate exit handler multiplexer

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
pager support like git

Include the pager support from the TopGit script into Quilt.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
pager support: some improvements

When QUILT_PAGER is set to an empty value, do not paginate.
Document QUILT_PAGER in the man page.
Clean things up a little.
Add a workaround in quilt.quiltrc for color output when $LESS is defined.
Do not quite QUILT_PAGER when executing the pager

(This allows to add parameters.)
Fix typo
- No longer create backup files of new files with file mode 0.
  (This has been changed in GNU patch 2.6 as well.)
push: update color matcher for failed merge

Patch(1) has recently changed the message for a failed merge from 'UNMERGED'
to 'NOT MERGED' (See commit 87f54e80 in the patch repository). Adopt this
change to quilt push's color matcher.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
- Make sure the series file is a regular file (or a symlink to a
  regular file).  Reported by Raphael Hertzog <hertzog@debian.org>.
- new command: Add -p ... option (equivalent to diff -p ...).
  (Based on a patch from Egbert Eich <eich@freedesktop.org>.)
- inspect: When guessing the tarball filename, make sure that only
  regular files are considered. (Otherwise, we will trip over
  command lines like "tar xjCf dir file").
- inspect: Try to better recognize "patch -d" and "tar -C" (which
  both change the working directory).  (This may fail in some other
  cases now -- there are still a lot of heuristics involved here.)
fix pager if you press ^C

This adopts more pager clean-up handling from git. Which traps also for some
common signals.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
- quilt.quiltrc: make sur eto only override QUILT_PAGER if
  QUILT_PAGER isn't set already.
Fix support of lzma- or xz-compressed files:
* Let xz handle lzma compatibility externally, with links.
  Otherwise lzma support will not work for users with only lzma
  installed and not xz.
* "upgrade" doesn't need to care about lzma nor xz, these
  compression formats were not supported back in v1.
* Fix cat_to_new_file() for lzma/xz files..
* Use a different letter for lzma and xz files in inspect.