|
30 | 30 |
|
31 | 31 | $ josh-filter -s --squash "refs/tags/*" --author "New Author" --email "new@e.mail" --update refs/heads/filtered |
32 | 32 | Warning: reference refs/heads/filtered wasn't updated |
33 | | - [1] :SQUASH=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
| 33 | + [1] :squash( |
| 34 | + |
| 35 | + ) |
34 | 36 |
|
35 | 37 | $ git log --graph --decorate --pretty=oneline refs/heads/filtered |
36 | 38 | fatal: ambiguous argument 'refs/heads/filtered': unknown revision or path not in the working tree. |
|
39 | 41 | [128] |
40 | 42 | $ git tag tag_a 1d69b7d |
41 | 43 | $ josh-filter -s --squash "refs/tags/*" :author=\"New\ Author\"\;\"new@e.mail\" --update refs/heads/filtered |
42 | | - [1] :SQUASH=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
43 | 44 | [1] :author="New Author";"new@e.mail" |
44 | | - [2] :SQUASH=10d465cdf297e8062eed54204414414faa63671e |
| 45 | + [1] :squash( |
| 46 | + |
| 47 | + ) |
| 48 | + [2] :squash( |
| 49 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 50 | + ) |
45 | 51 |
|
46 | 52 | $ git log --graph --decorate --pretty=oneline refs/heads/filtered |
47 | 53 | * d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b (tag: filtered/tag_a, filtered) refs/tags/tag_a |
|
58 | 64 | * 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb (tag: tag_b) add file1 |
59 | 65 |
|
60 | 66 | $ josh-filter -s --squash "refs/tags/*" :author=\"New\ Author\"\;\"new@e.mail\" --update refs/heads/filtered |
61 | | - [1] :SQUASH=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
62 | | - [2] :SQUASH=10d465cdf297e8062eed54204414414faa63671e |
63 | | - [3] :SQUASH=dd8bdf1d78a6cb9ffc9e2a0644a8bf41de56ad36 |
| 67 | + [1] :squash( |
| 68 | + |
| 69 | + ) |
| 70 | + [2] :squash( |
| 71 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 72 | + ) |
| 73 | + [3] :squash( |
| 74 | + 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:"refs/tags/tag_b" |
| 75 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 76 | + d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b:"refs/tags/filtered/tag_a" |
| 77 | + ) |
64 | 78 | [4] :author="New Author";"new@e.mail" |
65 | 79 |
|
66 | 80 | $ git log --graph --decorate --pretty=oneline refs/heads/filtered |
|
83 | 97 |
|
84 | 98 | $ git tag tag_c 975d4c4 |
85 | 99 |
|
86 | | - $ josh-filter -s --squash "refs/tags/*" :author=\"New\ Author\"\;\"new@e.mail\" --update refs/heads/filtered |
87 | | - [1] :SQUASH=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
88 | | - [2] :SQUASH=10d465cdf297e8062eed54204414414faa63671e |
89 | | - [3] :SQUASH=dd8bdf1d78a6cb9ffc9e2a0644a8bf41de56ad36 |
90 | | - [6] :SQUASH=b2a9a51df03600d3b5858fa7fca044741f88e521 |
91 | | - [9] :author="New Author";"new@e.mail" |
| 100 | + $ josh-filter -s --squash "refs/tags/*" :author=\"New\ Author\"\;\"new@e.mail\" --update refs/heads/filtered -p > filter.josh |
| 101 | + $ cat filter.josh |
| 102 | + :squash( |
| 103 | + 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:"refs/tags/tag_b" |
| 104 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 105 | + 5b1a753860ca124024f6dfb4fd018fe7df8beae4:"refs/tags/filtered/tag_a" |
| 106 | + 68dc45079334d83e5b61d2ceeda035b96da4c838:"refs/tags/filtered/filtered/tag_a" |
| 107 | + 96a731a4d64a8928e6af7abb2d425df3812b4197:"refs/tags/filtered/tag_b" |
| 108 | + 975d4c4975912729482cc864d321c5196a969271:"refs/tags/tag_c" |
| 109 | + ):author="New Author";"new@e.mail" |
| 110 | + $ josh-filter -s --file filter.josh --update refs/heads/filtered |
| 111 | + [1] :squash( |
| 112 | + |
| 113 | + ) |
| 114 | + [2] :squash( |
| 115 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 116 | + ) |
| 117 | + [3] :squash( |
| 118 | + 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:"refs/tags/tag_b" |
| 119 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 120 | + 5b1a753860ca124024f6dfb4fd018fe7df8beae4:"refs/tags/filtered/tag_a" |
| 121 | + 68dc45079334d83e5b61d2ceeda035b96da4c838:"refs/tags/filtered/filtered/tag_a" |
| 122 | + 96a731a4d64a8928e6af7abb2d425df3812b4197:"refs/tags/filtered/tag_b" |
| 123 | + 975d4c4975912729482cc864d321c5196a969271:"refs/tags/tag_c" |
| 124 | + ) |
| 125 | + [3] :squash( |
| 126 | + 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:"refs/tags/tag_b" |
| 127 | + 1d69b7d2651f744be3416f2ad526aeccefb99310:"refs/tags/tag_a" |
| 128 | + d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b:"refs/tags/filtered/tag_a" |
| 129 | + ) |
| 130 | + [6] :author="New Author";"new@e.mail" |
92 | 131 |
|
93 | 132 | $ git log --graph --decorate --pretty=oneline refs/heads/filtered |
94 | | - * 9fe45cb2bead844630852ab338ecd8e073f8ba50 (tag: filtered/tag_a, filtered) refs/tags/tag_a |
| 133 | + * 9fe45cb2bead844630852ab338ecd8e073f8ba50 (filtered) refs/tags/tag_a |
95 | 134 | |\ |
96 | | - | * d6b88d4c1cc566b7f4d9b51353ec6f3204a93b81 (tag: filtered/tag_c) refs/tags/tag_c |
| 135 | + | * d6b88d4c1cc566b7f4d9b51353ec6f3204a93b81 refs/tags/tag_c |
97 | 136 | |/ |
98 | 137 | * 96a731a4d64a8928e6af7abb2d425df3812b4197 (tag: filtered/tag_b) refs/tags/tag_b |
99 | 138 |
|
0 commit comments