Currently there are only options that either include the information of a dirty workdir either directly (dirty-tag) or indirectly through time (node-and-date / node-and-timestamp). The only other option is to turn off the local tag completely with no-local-version.
I would like to have a node scheme that includes the information of the current commit, but ignores any changes in the workdir.
Happy to send a PR if this proposal is accepted.