We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee19f0c commit 99f3ebdCopy full SHA for 99f3ebd
examples/singleapp/git_archive/main.go
@@ -120,6 +120,14 @@ func run() error {
120
return err
121
}
122
123
+ // --------------------------------------------------------------------------------------------
124
+ // 以下と同じことをする
125
+ //
126
+ // $ REV1=$(git rev-parse HEAD~1)
127
+ // $ REV2=$(git rev-parse HEAD)
128
+ // $ git archive --prefix=archive/ main $(git diff --name-only ${REV1} ${REV2}) -o archive.zip
129
130
+
131
// 最新のコミットハッシュを取得
132
var (
133
from string
0 commit comments