From 065ef26b6967394e55c485f8d4db98ad9e85c446 Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@ie.suberic.net>
Date: Wed, 25 Jan 2017 00:00:19 +0000
Subject: [PATCH] Add a comment for ExpandTilde.

---
 client/config.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/config.go b/client/config.go
index e901b729..209d609c 100644
--- a/client/config.go
+++ b/client/config.go
@@ -28,6 +28,7 @@ func setDefaults() {
 	viper.SetDefault("validateTLSCertificate", true)
 }
 
+// Expand ~ and ~user for a given path.
 func ExpandTilde(path string) string {
 	re := regexp.MustCompile("^~([^/]*)(/.*)")
 	if m := re.FindStringSubmatch(path); len(m) > 0 {
-- 
GitLab