title: How do I use rugged to check if there are uncommited changes in my git repository?
body: <p>How do I use <a href="https://github.com/libgit2/rugged" rel="nofollow noreferrer">rugged</a> to check whether there are uncommitted changes in my git repo?</p>
  
  <p>Much like <a href="https://stackoverflow.com/questions/3878624/how-do-i-programmatically-determine-if-there-are-uncommited-changes">How do I programmatically determine if there are uncommited changes?</a></p>