xref: /aosp_15_r20/external/openthread/tools/gerrit/README.md (revision cfb92d1480a9e65faed56933e9c12405f45898b4)
1*cfb92d14SAndroid Build Coastguard Worker# git-squash-merge tool
2*cfb92d14SAndroid Build Coastguard Worker
3*cfb92d14SAndroid Build Coastguard Worker`git-squash-merge` is a bash script to help squash merge a given branch into the current branch. This tool is helpful for synchronizing git repositories which work with `gerrit`.
4*cfb92d14SAndroid Build Coastguard Worker
5*cfb92d14SAndroid Build Coastguard WorkerThis command squash merges all commits from a given branch into the current branch. By default the changes are committed with a commit message containing the list of all squashed commits.
6*cfb92d14SAndroid Build Coastguard Worker
7*cfb92d14SAndroid Build Coastguard Worker## Syntax
8*cfb92d14SAndroid Build Coastguard Worker
9*cfb92d14SAndroid Build Coastguard Worker```
10*cfb92d14SAndroid Build Coastguard Workergit-squash-merge [--no-list] [--no-commit] <branch> [<commit msg>]"
11*cfb92d14SAndroid Build Coastguard Worker```
12*cfb92d14SAndroid Build Coastguard Worker
13*cfb92d14SAndroid Build Coastguard Worker## Parameters
14*cfb92d14SAndroid Build Coastguard Worker
15*cfb92d14SAndroid Build Coastguard Worker- `<branch>` specifies the name of branch to merge into current branch.
16*cfb92d14SAndroid Build Coastguard Worker- `<commit msg>` is an optional parameter specifying text to add to the commit message.
17*cfb92d14SAndroid Build Coastguard Worker
18*cfb92d14SAndroid Build Coastguard Worker## Options
19*cfb92d14SAndroid Build Coastguard Worker
20*cfb92d14SAndroid Build Coastguard Worker- `--no-list` when used the commit message will not include the list of squashed commits.
21*cfb92d14SAndroid Build Coastguard Worker- `--no-commit` when used, the tool squashes and stages the changes but does not commit"
22*cfb92d14SAndroid Build Coastguard Worker
23*cfb92d14SAndroid Build Coastguard Worker## Example of Use
24*cfb92d14SAndroid Build Coastguard Worker
25*cfb92d14SAndroid Build Coastguard Worker```
26*cfb92d14SAndroid Build Coastguard Worker~/sw/openthread $ ./tools/gerrit/git-squash-merge.sh github/master "OpenThread GitHub sync"
27*cfb92d14SAndroid Build Coastguard Workercommit 977287e73a3fcae297306b1e68da50d4bbee0d14 (HEAD)
28*cfb92d14SAndroid Build Coastguard WorkerAuthor: Abtin Keshavarzian <[email protected]>
29*cfb92d14SAndroid Build Coastguard WorkerDate:   Tue Aug 14 14:53:33 2018 -0700
30*cfb92d14SAndroid Build Coastguard Worker
31*cfb92d14SAndroid Build Coastguard Worker    Squash merge 'github/master' into 'HEAD'
32*cfb92d14SAndroid Build Coastguard Worker
33*cfb92d14SAndroid Build Coastguard Worker    OpenThread GitHub sync
34*cfb92d14SAndroid Build Coastguard Worker
35*cfb92d14SAndroid Build Coastguard Worker    3acd900bd [message] update comment/documentation (#2903)
36*cfb92d14SAndroid Build Coastguard Worker    2aa335144 [mle] fix logging at NOTE level (#2933)
37*cfb92d14SAndroid Build Coastguard Worker    a9932027f [toranj] test case for adding IPv6 addresses with same prefix on multiple nodes (#2915)
38*cfb92d14SAndroid Build Coastguard Worker    c097cd2d3 [mle] remove unused LeaderDataTlv from HandleChildUpdateRequest (#2936)
39*cfb92d14SAndroid Build Coastguard Worker    7be61df6e [message-info] remove unnecessary memset initialization (#2937)
40*cfb92d14SAndroid Build Coastguard Worker    bcfa7edff [ip6] ensure slaac addresses are added back after reset (#2938)
41*cfb92d14SAndroid Build Coastguard Worker    412f9740b [tlv] remove unnecessary user-specified constructor (#2940)
42*cfb92d14SAndroid Build Coastguard Worker    ba4b238a0 [link-quality] explicitly clear link quality for new child/router (#2941)
43*cfb92d14SAndroid Build Coastguard Worker    601b99b39 [android] use spi instead of uart (#2942)
44*cfb92d14SAndroid Build Coastguard Worker    d67c4e2f6 [ncp] include prop set support for THREAD_CHILD_TIMEOUT in MTD build (#2943)
45*cfb92d14SAndroid Build Coastguard Worker    44e583a55 [toranj] add new method to finalize all nodes at end of each test (#2930)
46*cfb92d14SAndroid Build Coastguard Worker    c551e3035 [posix] handle signals SIGHUP or SIGTERM and exit (#2930)
47*cfb92d14SAndroid Build Coastguard Worker    1ca81fbb1 [ncp] add support for child supervision in spinel/NcpBase (#2939)
48*cfb92d14SAndroid Build Coastguard Worker    f0bb0982e [examples] change example platform namespacing (#2927)
49*cfb92d14SAndroid Build Coastguard Worker    f089fc8e2 [gcc8] resolve compiler errors (#2944)
50*cfb92d14SAndroid Build Coastguard Worker    a9d32b7be [ncp] add support for Commissioner APIs in spinel and NCP (#2911)
51*cfb92d14SAndroid Build Coastguard Worker    8efb3c50e [meshcop] implement commissioning UDP proxy (#2926)
52*cfb92d14SAndroid Build Coastguard Worker    492f0c3b1 [harness-automation] update read method for TopologyConfig.txt format change (#2950)
53*cfb92d14SAndroid Build Coastguard Worker    e181f1f98 [posix-app] fix diag issues of radio only mode (#2948)
54*cfb92d14SAndroid Build Coastguard Worker    90ee0a4d6 [ncp] add joiner spinel support (#2877)
55*cfb92d14SAndroid Build Coastguard Worker    9d585edc4 [types] move types into specific headers (#2946)
56*cfb92d14SAndroid Build Coastguard Worker    101e24337 [nrf52840] fix default parameters of FEM (#2945)
57*cfb92d14SAndroid Build Coastguard Worker    c8d06c402 [efr32] fix em_system.h include (#2956)
58*cfb92d14SAndroid Build Coastguard Worker    d2e59fd64 [posix-app] fix getting tx power (#2957)
59*cfb92d14SAndroid Build Coastguard Worker    0c07c53ce [platform] attach timestamp in promiscuous mode (#2954)
60*cfb92d14SAndroid Build Coastguard Worker
61*cfb92d14SAndroid Build Coastguard Worker    Change-Id: I2fd7b537fc1e0251082f091cb897b9ac25e105dd
62*cfb92d14SAndroid Build Coastguard Worker
63*cfb92d14SAndroid Build Coastguard WorkerSuccessfully squash merged branch 'github/master' into 'HEAD'
64*cfb92d14SAndroid Build Coastguard Worker```
65