Open
Description
If you know you are offline, it would be useful to be able to disable all network operations e.g., fetch and push) which still allowing commits to be made. Hopefully, this would improve performance and reduce power consumption when no network is available.
In the future this could be used by the operation system to automatically enable/disable network operations, when joining or leaving a network.