Devin J. Pohly
a582a82d24
filter-branch: fix --prune-empty on parentless commits
...
Previously, the git_commit_non_empty_tree function would always pass any
commit with no parents to git-commit-tree, regardless of whether the
tree was nonempty. The new commit would then be recorded in the
filter-branch revision map, and subsequent commits which leave the tree
untouched would be correctly filtered.
With this change, parentless commits with an empty tree are correctly
pruned, and an empty file is recorded in the revision map, signifying
that it was rewritten to "no commits." This works naturally with the
parent mapping for subsequent commits.
Signed-off-by: Devin J. Pohly <djpohly@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2017-03-03 12:43:37 -08:00
..
2016-10-28 09:01:21 -07:00
2017-02-02 13:21:27 -08:00
2017-01-19 12:18:43 -08:00
2016-06-14 12:13:07 -07:00
2015-05-21 13:03:37 -07:00
2017-01-17 14:32:47 -08:00
2017-01-31 13:32:06 -08:00
2017-01-17 15:19:08 -08:00
2016-10-26 13:14:43 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2016-09-19 10:25:11 -07:00
2016-10-27 14:58:50 -07:00
2016-05-09 15:44:14 -07:00
2016-10-10 14:03:50 -07:00
2015-05-28 12:38:46 -07:00
2016-09-12 15:03:32 -07:00
2016-07-13 11:24:14 -07:00
2016-09-19 10:25:11 -07:00
2016-03-24 10:16:52 -07:00
2016-06-08 12:04:37 -07:00
2017-01-31 13:32:10 -08:00
2016-10-10 14:03:51 -07:00
2016-06-28 08:36:45 -07:00
2016-02-01 13:07:41 -08:00
2016-09-11 14:48:15 -07:00
2015-10-16 15:27:52 -07:00
2016-05-09 15:44:14 -07:00
2016-09-21 11:12:41 -07:00
2016-09-21 08:44:41 -07:00
2016-07-28 11:25:54 -07:00
2016-06-28 08:20:52 -07:00
2016-10-10 14:03:50 -07:00
2016-07-28 11:25:54 -07:00
2017-01-17 15:11:03 -08:00
2016-09-08 21:35:56 -07:00
2016-10-10 13:52:37 -07:00
2016-02-23 12:56:27 -08:00
2016-06-28 08:36:45 -07:00
2016-10-03 13:22:25 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2015-05-12 22:14:46 -07:00
2016-07-13 11:24:14 -07:00
2016-11-18 13:06:14 -08:00
2017-01-17 15:19:10 -08:00
2017-03-03 12:43:37 -08:00
2016-10-28 05:51:51 -07:00
2016-06-28 08:36:45 -07:00
2016-09-21 08:58:10 -07:00
2016-07-18 15:15:59 -07:00
2017-01-17 15:19:11 -08:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:36:45 -07:00
2015-03-10 15:19:05 -07:00
2016-08-24 12:31:05 -07:00
2016-07-06 13:06:34 -07:00
2016-06-08 12:04:55 -07:00
2016-11-21 12:49:57 -08:00
2016-07-11 10:31:08 -07:00
2016-10-10 12:14:58 -07:00
2016-01-19 10:07:56 -08:00
2016-06-28 08:36:45 -07:00
2016-05-26 13:17:14 -07:00
2016-06-06 11:14:43 -07:00
2016-10-21 09:46:48 -07:00
2015-10-29 12:10:23 -07:00
2016-04-21 11:58:51 -07:00
2016-10-11 10:04:31 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:20:52 -07:00
2016-06-28 08:20:52 -07:00
2016-06-28 08:20:52 -07:00
2016-07-28 11:25:54 -07:00
2016-08-10 10:55:13 -07:00
2015-10-16 15:27:52 -07:00
2015-06-29 08:48:44 -07:00
2017-01-17 15:19:10 -08:00
2017-01-17 15:19:10 -08:00
2016-06-08 12:04:37 -07:00
2016-07-28 11:25:54 -07:00
2016-08-24 12:31:05 -07:00
2015-07-21 14:08:14 -07:00
2016-08-11 14:35:42 -07:00
2016-06-28 08:36:45 -07:00
2016-08-12 09:47:35 -07:00
2016-06-08 12:04:37 -07:00
2015-09-14 12:50:33 -07:00
2015-03-13 22:13:46 -07:00
2015-10-05 12:30:13 -07:00
2015-07-15 10:30:54 -07:00
2016-06-28 08:36:45 -07:00
2016-07-28 11:25:54 -07:00
2016-06-28 08:36:45 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:20:52 -07:00
2016-06-28 08:36:45 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2015-05-12 22:14:46 -07:00
2016-10-26 09:58:10 -07:00
2016-08-11 11:15:56 -07:00
2015-10-16 15:27:52 -07:00
2016-10-19 14:58:53 -07:00
2016-12-12 10:49:50 -08:00
2016-10-28 09:01:10 -07:00
2015-07-28 13:21:59 -07:00
2016-08-24 12:31:05 -07:00
2016-06-28 08:36:45 -07:00
2015-07-21 14:08:35 -07:00
2015-10-22 10:16:12 -07:00
2016-05-31 10:17:20 -07:00
2016-07-06 13:06:36 -07:00
2015-05-17 11:24:57 -07:00
2015-06-22 14:20:47 -07:00
2016-06-28 08:36:45 -07:00
2016-11-29 13:28:02 -08:00
2017-01-17 15:19:11 -08:00
2016-12-06 11:29:52 -08:00
2016-12-09 15:14:01 -08:00
2016-02-26 10:58:14 -08:00
2016-09-22 11:23:45 -07:00
2016-06-28 08:36:45 -07:00
2015-10-22 10:14:44 -07:00
2016-07-14 15:50:17 -07:00
2016-06-08 12:04:55 -07:00
2016-09-19 13:51:38 -07:00
2016-10-28 09:01:19 -07:00
2016-11-14 11:23:07 -08:00
2016-10-10 14:03:50 -07:00
2016-11-11 09:37:33 -08:00
2016-08-13 19:36:44 -07:00
2016-02-01 13:07:41 -08:00
2016-09-25 16:39:11 -07:00
2016-06-08 12:04:37 -07:00
2016-05-18 14:40:14 -07:00
2015-07-01 14:55:53 -07:00
2015-04-20 11:05:50 -07:00
2016-05-10 11:15:04 -07:00
2016-06-17 11:39:05 -07:00
2016-06-08 12:04:37 -07:00
2016-05-17 14:38:39 -07:00
2016-02-22 10:42:52 -08:00
2016-10-28 09:01:23 -07:00
2016-07-06 13:06:34 -07:00
2016-10-11 14:20:06 -07:00
2016-09-27 10:59:28 -07:00
2016-08-26 15:58:10 -07:00
2016-11-14 11:23:07 -08:00
2015-10-22 10:16:12 -07:00
2016-02-01 13:07:41 -08:00
2016-03-03 13:43:36 -08:00