From 90bd0b0381f036a058679c36d9672abff88a688d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 17 Dec 2013 15:03:51 +0100 Subject: Man page: Document exit status Documentation update: add an EXIT STATUS section to the manual page. Closes Debian bug #587001: http://bugs.debian.org/587001 --- doc/quilt.1.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/quilt.1.in b/doc/quilt.1.in index 593e665..092c0a9 100644 --- a/doc/quilt.1.in +++ b/doc/quilt.1.in @@ -1,6 +1,6 @@ .\\" Created by Martin Quinson from the tex documentation .\\" -.TH quilt 1 "Dec 8, 2013" "quilt" +.TH quilt 1 "Dec 17, 2013" "quilt" .SH NAME quilt \\- tool to manage series of patches @@ -122,6 +122,16 @@ file. Print the version number and exit immediately. +.SH EXIT STATUS + +The exit status is 0 if the sub-command was successfully executed, and +1 in case of error. + +An exit status of 2 denotes that quilt did not do anything to complete +the command. This happens in particular when asking to push when the +whole stack is already pushed, or asking to pop when the whole stack +is already popped. This behavior is intended to ease the scripting +around quilt. .SH EXAMPLE OF WORKING TREE -- cgit