@@ -47,7 +47,7 @@ This one tag is an annotated tag, to make sure those are handled as well
4747 )
4848
4949 $ git log --graph --decorate --pretty=oneline refs/heads/filtered
50- * d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b (tag: filtered/tag_a, filtered) refs/tags/tag_a
50+ * 977cc3ee14c0d6163ba63bd96f4aeedd43916ba7 (tag: filtered/tag_a, filtered) refs/tags/tag_a
5151 $ git tag tag_b 0b4cf6c
5252
5353
@@ -70,55 +70,87 @@ This one tag is an annotated tag, to make sure those are handled as well
7070 [3] :squash(
7171 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
7272 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
73- d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b :" refs/ tags/ filtered/ tag_a"
73+ 977cc3ee14c0d6163ba63bd96f4aeedd43916ba7 :" refs/ tags/ filtered/ tag_a"
7474 )
7575 [4] :author=" New Author" ;" new @ e . mail"
7676
7777 $ git log --graph --decorate --pretty=oneline refs/heads/filtered
78- * 5b1a753860ca124024f6dfb4fd018fe7df8beae4 (tag: filtered/tag_a, filtered) refs/tags/tag_a
78+ * be41caf35896090033cfd103e06aae721a3ce541 (tag: filtered/tag_a, filtered) refs/tags/tag_a
7979 |\
80- * 96a731a4d64a8928e6af7abb2d425df3812b4197 (tag: filtered/tag_b) refs/tags/tag_b
80+ * 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be (tag: filtered/tag_b) refs/tags/tag_b
8181
82- $ git log --graph --pretty=% an :% ae refs/heads/master
83- * Josh:josh@ example .com
82+ $ git log --graph --pretty=% an :% ae- % cn : % ce refs/heads/master
83+ * Josh:josh@ example .com-Josh:josh @ example .com
8484 |\
85- | * Josh:josh@ example .com
86- | * Josh:josh@ example .com
87- * | Josh:josh@ example .com
85+ | * Josh:josh@ example .com-Josh:josh @ example .com
86+ | * Josh:josh@ example .com-Josh:josh @ example .com
87+ * | Josh:josh@ example .com-Josh:josh @ example .com
8888 |/
89- * Josh:josh@ example .com
90- $ git log --graph --pretty=% an :% ae refs/heads/filtered
91- * New Author:new@ e .mail
89+ * Josh:josh@ example .com-Josh:josh @ example .com
90+ $ git log --graph --pretty=% an :% ae- % cn : % ce refs/heads/filtered
91+ * New Author:new@ e .mail-Josh:josh @ example .com
9292 |\
93- * New Author:new@ e .mail
93+ * New Author:new@ e .mail-Josh:josh@ example .com
94+
95+ $ josh-filter -s --squash-pattern " refs/ tags/* " :committer=\" New\ Author\" \;\" new@ e .mail\" --update refs/heads/filtered
96+ [1] :" refs/ tags/ filtered/ filtered/ tag_a"
97+ [1] :" refs/ tags/ filtered/ tag_a"
98+ [1] :" refs/ tags/ filtered/ tag_b"
99+ [1] :" refs/ tags/ tag_a"
100+ [1] :" refs/ tags/ tag_b"
101+ [1] :squash(
102+ 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
103+ )
104+ [3] :squash(
105+ 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
106+ 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
107+ 977cc3ee14c0d6163ba63bd96f4aeedd43916ba7:" refs/ tags/ filtered/ tag_a"
108+ )
109+ [4] :author=" New Author" ;" new @ e . mail"
110+ [5] :committer=" New Author" ;" new @ e . mail"
111+ [5] :squash(
112+ 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
113+ 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
114+ 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be:" refs/ tags/ filtered/ tag_b"
115+ a68763bdf2f45a44304067954855749e366a5533:" refs/ tags/ filtered/ filtered/ tag_a"
116+ be41caf35896090033cfd103e06aae721a3ce541:" refs/ tags/ filtered/ tag_a"
117+ )
118+ $ git log --graph --pretty=% an :% ae -% cn :% ce refs/heads/filtered
119+ * Josh:josh@ example .com-New Author:new@ e .mail
120+ |\
121+ * Josh:josh@ example .com-New Author:new@ e .mail
94122
95123 $ git tag tag_c 975d4c4
96124
97125 $ git show-ref | grep refs/heads > squashlist
98126 $ cat squashlist
99127 86871b8775ad3baca86484337d1072aa1d386f7e refs/heads/branch2
100- 5b1a753860ca124024f6dfb4fd018fe7df8beae4 refs/heads/filtered
128+ 97c6007771c497c9530d61aa89af663daebb1625 refs/heads/filtered
101129 1d69b7d2651f744be3416f2ad526aeccefb99310 refs/heads/master
102130 $ josh-filter -s --squash-file squashlist :author=\" John\ Doe\" \;\" new@ e .mail\" --update refs/heads/filtered -p > filter.josh
103131 $ cat filter.josh
104132 :squash(
105133 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ heads/ master"
106- 5b1a753860ca124024f6dfb4fd018fe7df8beae4:" refs/ heads/ filtered"
107134 86871b8775ad3baca86484337d1072aa1d386f7e:" refs/ heads/ branch2"
135+ 97c6007771c497c9530d61aa89af663daebb1625:" refs/ heads/ filtered"
108136 ):author=" John Doe" ;" new @ e . mail"
109137
110138 $ josh-filter -s --squash-pattern " refs/ tags/* " :author=\" New\ Author\" \;\" new@ e .mail\" --update refs/heads/filtered -p > filter.josh
111139 $ cat filter.josh
112140 :squash(
113141 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
114142 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
115- 5b1a753860ca124024f6dfb4fd018fe7df8beae4:" refs/ tags/ filtered/ tag_a"
116- 68dc45079334d83e5b61d2ceeda035b96da4c838:" refs/ tags/ filtered/ filtered/ tag_a"
117- 96a731a4d64a8928e6af7abb2d425df3812b4197:" refs/ tags/ filtered/ tag_b"
143+ 1dd879133bc80f7d180bd98268412f8ee61226f2:" refs/ tags/ filtered/ tag_b"
118144 975d4c4975912729482cc864d321c5196a969271:" refs/ tags/ tag_c"
145+ 97c6007771c497c9530d61aa89af663daebb1625:" refs/ tags/ filtered/ tag_a"
146+ a91f2e4061d13b9adcb6d8ca63e17c8bbc5bed55:" refs/ tags/ filtered/ filtered/ tag_a"
147+ b7e3b7815c4d7c8738545526b20308b1240137c7:" refs/ tags/ filtered/ filtered/ filtered/ tag_a"
148+ c4215db39f3cd96f07fe4c1f701dad39d5f5dec3:" refs/ tags/ filtered/ filtered/ tag_b"
119149 ):author=" New Author" ;" new @ e . mail"
120150 $ josh-filter -s --file filter.josh --update refs/heads/filtered
151+ [1] :" refs/ tags/ filtered/ filtered/ tag_a"
121152 [1] :" refs/ tags/ filtered/ tag_a"
153+ [1] :" refs/ tags/ filtered/ tag_b"
122154 [1] :" refs/ tags/ tag_a"
123155 [1] :" refs/ tags/ tag_b"
124156 [1] :" refs/ tags/ tag_c"
@@ -128,22 +160,32 @@ This one tag is an annotated tag, to make sure those are handled as well
128160 [3] :squash(
129161 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
130162 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
131- 5b1a753860ca124024f6dfb4fd018fe7df8beae4:" refs/ tags/ filtered/ tag_a"
132- 68dc45079334d83e5b61d2ceeda035b96da4c838:" refs/ tags/ filtered/ filtered/ tag_a"
133- 96a731a4d64a8928e6af7abb2d425df3812b4197:" refs/ tags/ filtered/ tag_b"
163+ 1dd879133bc80f7d180bd98268412f8ee61226f2:" refs/ tags/ filtered/ tag_b"
134164 975d4c4975912729482cc864d321c5196a969271:" refs/ tags/ tag_c"
165+ 97c6007771c497c9530d61aa89af663daebb1625:" refs/ tags/ filtered/ tag_a"
166+ a91f2e4061d13b9adcb6d8ca63e17c8bbc5bed55:" refs/ tags/ filtered/ filtered/ tag_a"
167+ b7e3b7815c4d7c8738545526b20308b1240137c7:" refs/ tags/ filtered/ filtered/ filtered/ tag_a"
168+ c4215db39f3cd96f07fe4c1f701dad39d5f5dec3:" refs/ tags/ filtered/ filtered/ tag_b"
135169 )
136170 [3] :squash(
137171 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
138172 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
139- d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b:" refs/ tags/ filtered/ tag_a"
173+ 977cc3ee14c0d6163ba63bd96f4aeedd43916ba7:" refs/ tags/ filtered/ tag_a"
174+ )
175+ [5] :committer=" New Author" ;" new @ e . mail"
176+ [5] :squash(
177+ 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
178+ 1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
179+ 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be:" refs/ tags/ filtered/ tag_b"
180+ a68763bdf2f45a44304067954855749e366a5533:" refs/ tags/ filtered/ filtered/ tag_a"
181+ be41caf35896090033cfd103e06aae721a3ce541:" refs/ tags/ filtered/ tag_a"
140182 )
141183 [6] :author=" New Author" ;" new @ e . mail"
142184
143185 $ git log --graph --decorate --pretty=oneline refs/heads/filtered
144- * 9fe45cb2bead844630852ab338ecd8e073f8ba50 (filtered) refs/tags/tag_a
186+ * 2826b9a173c7a7d5c83d9ae2614de89c77205d83 (filtered) refs/tags/tag_a
145187 |\
146- | * d6b88d4c1cc566b7f4d9b51353ec6f3204a93b81 refs/tags/tag_c
188+ | * 63f8653625759f860ee31cce2d4e207974da1c37 refs/tags/tag_c
147189 |/
148- * 96a731a4d64a8928e6af7abb2d425df3812b4197 (tag: filtered/tag_b) refs/tags/tag_b
190+ * 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be refs/tags/tag_b
149191
0 commit comments