History of a rule or a rulegroup

Sometimes, to know the history of a rule would help me to improve the rule.

The History button on


lets me see the history of rules. I can search for a rule name, and I can use the ‘Older’ button at the bottom of the page. But, there are 2 problems:

  • The method is slow.
  • If the rule name is not in the title of the commit, I don’t find the rule.

Is there another way to find the history of a grammar rule? If yes, how?

git only works line-by-line, i.e. it doesn’t know about the structure of the rules. I think to get the history of a rule, one would need to write a script that walks through all the previous versions of grammar.xml and extracts the rule each time.