summaryrefslogtreecommitdiffstats
path: root/hash.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-03-26 14:09:43 -0700
committerJosh Stone <jistone@redhat.com>2009-03-26 14:09:43 -0700
commitd0d806edbff3dbdc70a1c83dc6ac67c88b9606ce (patch)
tree6692cf57857510f1d8ec20510eb655f81bc47d6c /hash.cxx
parent4aa2079a01a62ff27cbe90f5eca38137035d34a8 (diff)
downloadsystemtap-steved-d0d806edbff3dbdc70a1c83dc6ac67c88b9606ce.tar.gz
systemtap-steved-d0d806edbff3dbdc70a1c83dc6ac67c88b9606ce.tar.xz
systemtap-steved-d0d806edbff3dbdc70a1c83dc6ac67c88b9606ce.zip
Skip the git-rev in the hash for now (from a5e8d632)
It may be potentially expensive to fork-exec a git call to get the HEAD revision, and it's not clear whether it's even needed. We can always throw this back on if we find a meaningful usage scenario.
Diffstat (limited to 'hash.cxx')
-rw-r--r--hash.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/hash.cxx b/hash.cxx
index 649e7ec0..3ff6848d 100644
--- a/hash.cxx
+++ b/hash.cxx
@@ -97,7 +97,10 @@ get_base_hash (systemtap_session& s, hash& h)
// If the kernel is a git working directory, then add the git HEAD
// revision to our hash as well.
- h.add(git_revision(s.kernel_build_tree));
+ // XXX avoiding this for now, because it's potentially expensive and has
+ // uncertain gain. The only corner case that this may help is if a developer
+ // is switching the source tree without rebuilding the kernel...
+ ///h.add(git_revision(s.kernel_build_tree));
// Hash runtime path (that gets added in as "-R path").
h.add(s.runtime_path);