Files
scripts/lineage-push
LuK1337 2e187ce924 lineage-push: Improve parsing parameters
* Gerrit doesn't support chained commands by bluntly appending
  (%command1%command2%...), but rather by comma separating them
  (%command1,command2,...)

Change-Id: I58cf5db3c1ba79788b7e26a483e0b01aef65104b
2018-05-13 15:33:21 +02:00
..
2018-04-14 23:21:12 +02:00

LineageOS Push Script

usage: lineage-push.py [-h] [-a] [-b] [-d] [-e] [-f] [-l LABEL] [-m [MESSAGE]]
                       [-p [PRIVATE]] [-r REF] [-s] [-t TOPIC] [-w [WIP]]
                       branch

Pushes a local git repository's changes to Gerrit for code review

positional arguments:
  branch                upload change to branch

optional arguments:
  -h, --help            show this help message and exit
  -a, --hashtag         add hashtag to change
  -b, --bypass          bypass review and merge
  -d, --draft           upload change as draft
  -e, --edit            upload change as edit
  -f, --force           force push
  -l LABEL, --label LABEL
                        assign label
  -m [MESSAGE], --message [MESSAGE]
                        add message to change
  -p [PRIVATE], --private [PRIVATE]
                        upload change as private
  -r REF, --ref REF     push to specified ref
  -s, --submit          submit change
  -t TOPIC, --topic TOPIC
                        append topic to change
  -w [WIP], --wip [WIP]
                        upload change as WIP
  Examples:
    lineage-push -d -t test cm-14.1
    lineage-push -s -l "Code-Review+2,Verified+1" cm-14.1