From: Rafał Miłecki <ra...@milecki.pl>

We already count amount of local git commits. This allows realizing if
user did any local changes based on his boot log or openwrt_release.

Signed-off-by: Rafał Miłecki <ra...@milecki.pl>
---
 scripts/getver.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/getver.sh b/scripts/getver.sh
index e718485..30cd6e9 100755
--- a/scripts/getver.sh
+++ b/scripts/getver.sh
@@ -40,6 +40,10 @@ try_git() {
                        REV="${UPSTREAM_REV}+$((REV - UPSTREAM_REV))"
                fi
 
+               if ! git diff-index --quiet HEAD; then
+                       REV="$REV+"
+               fi
+
                REV="${REV:+r$REV}"
                ;;
        esac
-- 
2.10.1


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to