This reverts commit 8373671fd4f3f7e9d78c480e9f68c0a7ae423c69. Actually that's not correct - diffs can send only changed objects. Diffing is the right tool for that.
Showing the changes to src (2 of 5 files). Show all
Unified · Split
| @@ -169,7 +169,7 @@ pub struct PackCreate { · 168 unmodified lines | |||
| 169 | #[argh(option, short = 'e')] | 169 | #[argh(option, short = 'e')] |
| 170 | /// the way objects are expanded. They differ in costs. | 170 | /// the way objects are expanded. They differ in costs. |
| 171 | /// | 171 | /// |
| 172 | /// Possible values are "none" and "tree-traversal". | 172 | /// Possible values are "none" and "tree-traversal". Default is "tree-diff". |
| 173 | pub expansion: Option<core::pack::create::ObjectExpansion>, | 173 | pub expansion: Option<core::pack::create::ObjectExpansion>, |
| 174 | 174 | ||
| 175 | /// the tips from which to start the commit graph iteration. | 175 | /// the tips from which to start the commit graph iteration. |
| @@ -50,11 +50,10 @@ pub enum Subcommands { · 49 unmodified lines | |||
| 50 | /// the directory containing the '.git' repository from which objects should be read. | 50 | /// the directory containing the '.git' repository from which objects should be read. |
| 51 | repository: Option<PathBuf>, | 51 | repository: Option<PathBuf>, |
| 52 | 52 | ||
| 53 | #[clap(long, short = 'e', possible_values(core::pack::create::ObjectExpansion::variants()))] | 53 | #[clap(long, short = 'e')] |
| 54 | /// the way objects are expanded. | 54 | /// the way objects are expanded. They differ in costs. |
| 55 | /// | 55 | /// |
| 56 | /// 'none' keeps objects as is. 'tree-traversal' expands to objects seen in a tree reachable from the | 56 | /// Possible values are "none" and "tree-traversal". Default is "tree-diff". |
| 57 | /// input object. | ||
| 58 | expansion: Option<core::pack::create::ObjectExpansion>, | 57 | expansion: Option<core::pack::create::ObjectExpansion>, |
| 59 | 58 | ||
| 60 | /// the tips from which to start the commit graph iteration. | 59 | /// the tips from which to start the commit graph iteration. |