MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / ReverseSlice

Function ReverseSlice

mob.go:1047–1053  ·  view source on GitHub ↗
(s interface{})

Source from the content-addressed store, hash-verified

1045}
1046
1047func ReverseSlice(s interface{}) {
1048 size := reflect.ValueOf(s).Len()
1049 swap := reflect.Swapper(s)
1050 for i, j := 0, size-1; i < j; i, j = i+1, j-1 {
1051 swap(i, j)
1052 }
1053}
1054
1055func isNothingToCommit() bool {
1056 output := silentgit("status", "--porcelain")

Callers 1

sayLastCommitsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected