@@ -475,6 +475,7 @@ static void emit_other(struct blame_scoreboard *sb, struct blame_entry *ent, int
fputs(color, stdout);
if (suspect->commit->object.flags & UNINTERESTING) {
+ if (blame_only) continue;
if (blank_boundary)
memset(hex, ' ', length);
else if (!(opt & OUTPUT_ANNOTATE_COMPAT)) {
@@ -122,4 +122,11 @@ test_expect_success '--exclude-promisor-objects does not BUG-crash' '
test_must_fail git blame --exclude-promisor-objects one
'
+test_expect_success 'test --blame-only, exclude boundary commits' '
+ git blame --blame-only branch1.. -- file >actual &&
+ git blame branch1.. -- file >full &&
+ sed -e "/^\^/d" full >expected &&
+ test_cmp expected actual
+'
+
test_done
Make the option functional and add tests Signed-off-by: Philip Oakley <philipoakley@iee.email> --- builtin/blame.c | 1 + t/t8002-blame.sh | 7 +++++++ 2 files changed, 8 insertions(+)