Commit d0c8cbd
committed
git-backport-diff: Default to newest commit
It is more likely that a backport refers to a newer commit than to an
old one. One reason not to do so is because a later commit may
reference the existing commit in its message. To get around this, only
look at commits that actually have a matching subject and ignore their
message body.
As a side effect, this generally makes the script faster because the
git-log process is quit once the first valid match is found.1 parent d8ee7c3 commit d0c8cbd
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
0 commit comments