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
169169 #[argh(option, short = 'e')]
170170 /// the way objects are expanded. They differ in costs.
171171 ///
172− /// Possible values are "none" and "tree-traversal".
172+ /// Possible values are "none" and "tree-traversal". Default is "tree-diff".
173173 pub expansion: Option<core::pack::create::ObjectExpansion>,
174174
175175 /// 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
5050 /// the directory containing the '.git' repository from which objects should be read.
5151 repository: Option<PathBuf>,
5252
53− #[clap(long, short = 'e', possible_values(core::pack::create::ObjectExpansion::variants()))]
54− /// the way objects are expanded.
53+ #[clap(long, short = 'e')]
54+ /// the way objects are expanded. They differ in costs.
5555 ///
56− /// 'none' keeps objects as is. 'tree-traversal' expands to objects seen in a tree reachable from the
57− /// input object.
56+ /// Possible values are "none" and "tree-traversal". Default is "tree-diff".
5857 expansion: Option<core::pack::create::ObjectExpansion>,
5958
6059 /// 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