aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/protocol/packp/common.go')
-rw-r--r--plumbing/protocol/packp/common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/common.go b/plumbing/protocol/packp/common.go
index 2328eda..93dfaed 100644
--- a/plumbing/protocol/packp/common.go
+++ b/plumbing/protocol/packp/common.go
@@ -40,3 +40,7 @@ var (
// updreq
shallowNoSp = []byte("shallow")
)
+
+func isFlush(payload []byte) bool {
+ return len(payload) == 0
+}