@@ -47,7 +47,7 @@ This one tag is an annotated tag, to make sure those are handled as well
47
47
)
48
48
49
49
$ 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
51
51
$ git tag tag_b 0b4cf6c
52
52
53
53
@@ -70,55 +70,87 @@ This one tag is an annotated tag, to make sure those are handled as well
70
70
[3] :squash(
71
71
0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
72
72
1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ tags/ tag_a"
73
- d8aa5a9937f4f0bd645dbc0b591bae5cd6b6d91b :" refs/ tags/ filtered/ tag_a"
73
+ 977cc3ee14c0d6163ba63bd96f4aeedd43916ba7 :" refs/ tags/ filtered/ tag_a"
74
74
)
75
75
[4] :author=" New Author" ;" new @ e . mail"
76
76
77
77
$ 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
79
79
|\
80
- * 96a731a4d64a8928e6af7abb2d425df3812b4197 (tag: filtered/tag_b) refs/tags/tag_b
80
+ * 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be (tag: filtered/tag_b) refs/tags/tag_b
81
81
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
84
84
|\
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
88
88
|/
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
92
92
|\
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
94
122
95
123
$ git tag tag_c 975d4c4
96
124
97
125
$ git show-ref | grep refs/heads > squashlist
98
126
$ cat squashlist
99
127
86871b8775ad3baca86484337d1072aa1d386f7e refs/heads/branch2
100
- 5b1a753860ca124024f6dfb4fd018fe7df8beae4 refs/heads/filtered
128
+ 97c6007771c497c9530d61aa89af663daebb1625 refs/heads/filtered
101
129
1d69b7d2651f744be3416f2ad526aeccefb99310 refs/heads/master
102
130
$ josh-filter -s --squash-file squashlist :author=\" John\ Doe\" \;\" new@ e .mail\" --update refs/heads/filtered -p > filter.josh
103
131
$ cat filter.josh
104
132
:squash(
105
133
1d69b7d2651f744be3416f2ad526aeccefb99310:" refs/ heads/ master"
106
- 5b1a753860ca124024f6dfb4fd018fe7df8beae4:" refs/ heads/ filtered"
107
134
86871b8775ad3baca86484337d1072aa1d386f7e:" refs/ heads/ branch2"
135
+ 97c6007771c497c9530d61aa89af663daebb1625:" refs/ heads/ filtered"
108
136
):author=" John Doe" ;" new @ e . mail"
109
137
110
138
$ josh-filter -s --squash-pattern " refs/ tags/* " :author=\" New\ Author\" \;\" new@ e .mail\" --update refs/heads/filtered -p > filter.josh
111
139
$ cat filter.josh
112
140
:squash(
113
141
0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
114
142
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"
118
144
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"
119
149
):author=" New Author" ;" new @ e . mail"
120
150
$ josh-filter -s --file filter.josh --update refs/heads/filtered
151
+ [1] :" refs/ tags/ filtered/ filtered/ tag_a"
121
152
[1] :" refs/ tags/ filtered/ tag_a"
153
+ [1] :" refs/ tags/ filtered/ tag_b"
122
154
[1] :" refs/ tags/ tag_a"
123
155
[1] :" refs/ tags/ tag_b"
124
156
[1] :" refs/ tags/ tag_c"
@@ -128,22 +160,32 @@ This one tag is an annotated tag, to make sure those are handled as well
128
160
[3] :squash(
129
161
0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
130
162
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"
134
164
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"
135
169
)
136
170
[3] :squash(
137
171
0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb:" refs/ tags/ tag_b"
138
172
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"
140
182
)
141
183
[6] :author=" New Author" ;" new @ e . mail"
142
184
143
185
$ git log --graph --decorate --pretty=oneline refs/heads/filtered
144
- * 9fe45cb2bead844630852ab338ecd8e073f8ba50 (filtered) refs/tags/tag_a
186
+ * 2826b9a173c7a7d5c83d9ae2614de89c77205d83 (filtered) refs/tags/tag_a
145
187
|\
146
- | * d6b88d4c1cc566b7f4d9b51353ec6f3204a93b81 refs/tags/tag_c
188
+ | * 63f8653625759f860ee31cce2d4e207974da1c37 refs/tags/tag_c
147
189
|/
148
- * 96a731a4d64a8928e6af7abb2d425df3812b4197 (tag: filtered/tag_b) refs/tags/tag_b
190
+ * 64f712c4615dbf5e9e0a1c4cdf65b2da2138f4be refs/tags/tag_b
149
191
0 commit comments