Gitiles
Code Review
Sign In
gerrit.nordix.org
/
onap
/
sdnc
/
oam
/
f4b9421ac63454ce0eb52c1767b4d7fa7c4550e7
/
.
/
dgbuilder
/
git_scripts
/
gitckout
blob: 3db9db823a09bc7e53516e2e1cc1168d6839b653 [
file
] [
log
] [
blame
]
if
[
"$#"
!=
"2"
]
then
echo
"Usage $0 commitId full_path_to_the_source_file"
exit
fi
fileName
=
$
(
basename $2
)
dirName
=
$
(
dirname $2
)
commitId
=
$1
cd $dirName
if
[
-
e
"$2"
]
then
rm $2
2
>
/dev/
null
fi
git checkout $commitId $fileName
cat $fileName