aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authornoonehereplzgo <45905717+noonehereplzgo@users.noreply.github.com>2019-06-11 02:32:52 +0300
committerMohammad Kefah <mo@edraj.io>2019-06-11 02:41:16 +0300
commit4b689826bfc1df9927e18ebede18841d22cbcf51 (patch)
tree854e0548fe4410cb211d184bd1a69558568bd046 /worktree.go
parent60033b8925a18fff9f68bea3d980076f73eb3cb5 (diff)
downloadgo-git-4b689826bfc1df9927e18ebede18841d22cbcf51.tar.gz
use constant instead of literal string
Signed-off-by: Mohammad Kefah <mo@edraj.io>
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.go b/worktree.go
index 1b10449..576ae0a 100644
--- a/worktree.go
+++ b/worktree.go
@@ -722,7 +722,7 @@ func (w *Worktree) Clean(opts *CleanOptions) error {
func (w *Worktree) doClean(status Status, opts *CleanOptions, dir string, files []os.FileInfo) error {
for _, fi := range files {
- if fi.Name() == ".git" {
+ if fi.Name() == GitDirName {
continue
}