Cancels a previous get command.
unget [ -rSID ] [ -s ] [ -n ] File ...
The unget command allows you to restore a g-file created with get -e before the new delta is created. Any changes are therefore discarded. If you specify a - (dash) for the value of File, standard input is read, and each line of standard input is interpreted as the name of an SCCS file. An end-of-file character terminates input.
If you specify a directory for the File value, the unget command performs the requested actions on all SCCS files that are currently in the process of being edited (those files with the s. prefix).
Once you have run an unget command on a file, you must reissue a get -e command to make changes to the file. The unget command automatically deletes the g-file.
Each flag or group of flags applies independently to each named file.
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
To discard the changes you have made to an SCCS file after running a get -e command, enter:
unget s.prog.c
/usr/bin/unget | Contains the path to the SCCS unget command. |
The delta command, get command, sact command.
The sccsfile file format.
List of SCCS Commands in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Source Code Control System (SCCS) Overview in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.