File: main.test

package info (click to toggle)
commit-patch 2.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 225; sh: 141; lisp: 141; makefile: 49
file content (22 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- sh -*-

echo "initial" > a

diff -uN --label /dev/null --label ${DIFF_PREFIX}a /dev/null a > initial.patch || true

$COMMIT_PATCH -m "initial" initial.patch

echo "1234" >> a

$VC_DIFF > changed.patch || true

$COMMIT_PATCH -m "changed" changed.patch

rm a

# Some VCSes won't show diffs for removed files unless you tell it they are removed:
$VC_RM a

$VC_DIFF > removed.patch || true

$COMMIT_PATCH -m "removed" removed.patch