From 3e37a2a02cc9d72491ecc14284cf5e5c20fb6bcb Mon Sep 17 00:00:00 2001 From: nyyu Date: Tue, 27 Sep 2022 08:44:32 +0200 Subject: [PATCH] remove patches from changelog --- sync.sh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/sync.sh b/sync.sh index 02e2e45..069ef41 100644 --- a/sync.sh +++ b/sync.sh @@ -14,6 +14,24 @@ done repo sync -q -c -j 6 --fail-fast --force-sync --no-tags +echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}" + +tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"')) +for i in "${tmp[@]}"; do + IFS=: read -r folder commit <<<"${i}" + if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then + cd "${folder}" || continue + { + echo "## ${folder} ${before[${folder}]}..${commit}" + git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}" + echo + } >>"${changelog}" + cd "${TOPDIR}" || continue + fi +done +echo -e "\n" >>"${changelog}" +cat "${changelog}" + cd packages/apps/LineageParts git am $DRONE_WORKSPACE_BASE/fix-always-enable-taskbar-toggle.patch || git am --abort cd $TOPDIR @@ -46,22 +64,4 @@ repopick -f 334343 334344 -P frameworks/base #misc repopick 336186 -repopick 338888 - -echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}" - -tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"')) -for i in "${tmp[@]}"; do - IFS=: read -r folder commit <<<"${i}" - if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then - cd "${folder}" || continue - { - echo "## ${folder} ${before[${folder}]}..${commit}" - git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}" - echo - } >>"${changelog}" - cd "${TOPDIR}" || continue - fi -done -echo -e "\n" >>"${changelog}" -cat "${changelog}" +repopick 338888 \ No newline at end of file