Skip to content

Commit 99f3ebd

Browse files
committed
Update
1 parent ee19f0c commit 99f3ebd

File tree

1 file changed

+8
-0
lines changed
  • examples/singleapp/git_archive

1 file changed

+8
-0
lines changed

examples/singleapp/git_archive/main.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ func run() error {
120120
return err
121121
}
122122

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+
123131
// 最新のコミットハッシュを取得
124132
var (
125133
from string

0 commit comments

Comments
 (0)