3 Star 10 Fork 2

Git工具集 / git-lfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
git-lfs.go 549 Bytes
一键复制 编辑 原始数据 按行查看 历史
brian m. carlson 提交于 2019-01-14 15:13 . Run go generate only on Windows
package main
import (
"fmt"
"os"
"os/signal"
"sync"
"syscall"
"github.com/git-lfs/git-lfs/commands"
)
func main() {
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt, os.Kill)
var once sync.Once
go func() {
for {
sig := <-c
once.Do(commands.Cleanup)
fmt.Fprintf(os.Stderr, "\nExiting because of %q signal.\n", sig)
exitCode := 1
if sysSig, ok := sig.(syscall.Signal); ok {
exitCode = int(sysSig)
}
os.Exit(exitCode + 128)
}
}()
code := commands.Run()
once.Do(commands.Cleanup)
os.Exit(code)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/vcs-all-in-one/git-lfs.git
git@gitee.com:vcs-all-in-one/git-lfs.git
vcs-all-in-one
git-lfs
git-lfs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891