Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Set default pack window size in config #712

Merged
merged 3 commits into from
Jan 10, 2018

Conversation

jfontan
Copy link
Contributor

@jfontan jfontan commented Jan 9, 2018

Config is not initialized with the default window size. Without this the window size is 0 and packfile code is unable to generate deltas.

Config is not initialized with the default window size. Without this the
window size is 0 by default and packfile code is unable to generate
deltas.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
@jfontan jfontan requested review from ajnavarro and mcuadros January 9, 2018 14:36
config/config.go Outdated
Remotes: make(map[string]*RemoteConfig),
Submodules: make(map[string]*Submodule),
Raw: format.New(),
}

config.Pack.Window = defaultPackWindow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a test

Signed-off-by: Javi Fontan <jfontan@gmail.com>
config/config.go Outdated
Remotes: make(map[string]*RemoteConfig),
Submodules: make(map[string]*Submodule),
Raw: format.New(),
}

config.Pack.Window = defaultPackWindow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make defaultPackWindow public and document it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Javi Fontan <jfontan@gmail.com>
@mcuadros mcuadros merged commit 2547d1d into src-d:master Jan 10, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants