History

Revert "[pack-gen] remove tree-diff as traversal option."

This reverts commit 8373671fd4f3f7e9d78c480e9f68c0a7ae423c69. Actually that's not correct - diffs can send only changed objects. Diffing is the right tool for that.

Sebastian Thiel committed 5 years ago

Commit 2907a5f1 parent 83736715 files · +177 −18Browse files

Showing the changes to src (2 of 5 files). Show all

Unified · Split

2 files
  1. src/plumbing/lean/options.rs +1 −1
  2. src/plumbing/pretty/options.rs +3 −4
src/plumbing/lean/options.rs+1−1
@@ -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.
src/plumbing/pretty/options.rs+3−4
@@ -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 the56 /// 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.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t