Rename command line parameter "objectid" to "object-id".

https://github.com/github/git-lfs/pull/449/files#r33897536
This commit is contained in:
Lars Schneider 2015-07-06 11:34:49 +02:00
parent d24ab635ef
commit d55f813f48
2 changed files with 3 additions and 3 deletions

@ -172,6 +172,6 @@ func pushCommand(cmd *cobra.Command, args []string) {
func init() {
pushCmd.Flags().BoolVarP(&pushDryRun, "dry-run", "d", false, "Do everything except actually send the updates")
pushCmd.Flags().BoolVarP(&useStdin, "stdin", "s", false, "Take refs on stdin (for pre-push hook)")
pushCmd.Flags().BoolVarP(&pushObjectIDs, "objectid", "o", false, "Push LFS object ID(s)")
pushCmd.Flags().BoolVarP(&pushObjectIDs, "object-id", "o", false, "Push LFS object ID(s)")
RootCmd.AddCommand(pushCmd)
}

@ -67,7 +67,7 @@ begin_test "push object id(s)"
git add .gitattributes a.dat
git commit -m "add a.dat"
git lfs push --objectid origin \
git lfs push --object-id origin \
4c48d2a6991c9895bcddcf027e1e4907280bcf21975492b1afbade396d6a3340 \
2>&1 | tee push.log
grep "(1 of 1 files)" push.log
@ -76,7 +76,7 @@ begin_test "push object id(s)"
git add b.dat
git commit -m "add b.dat"
git lfs push --objectid origin \
git lfs push --object-id origin \
4c48d2a6991c9895bcddcf027e1e4907280bcf21975492b1afbade396d6a3340 \
82be50ad35070a4ef3467a0a650c52d5b637035e7ad02c36652e59d01ba282b7 \
2>&1 | tee push.log