Skip to content

Instantly share code, notes, and snippets.

@hpcx82
Created May 30, 2012 09:49
Show Gist options
  • Save hpcx82/2835224 to your computer and use it in GitHub Desktop.
Save hpcx82/2835224 to your computer and use it in GitHub Desktop.
Create a changelist from command line
#
# create a named changelist with certain description
#
# Usages:
# p4change
# p4change "This is my changelist"
#
if [ ! "$1" ]
then
CL_DESC="New changelist with default description."
else
CL_DESC=$*
fi
# echo $CL_DESC;
p4 change -o | sed "s/<enter description here>/$CL_DESC/" | p4 change -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment