jamesmunns / git_crosstag

Tool for managing tags within and outside a git repository
MIT License
1 stars 1 forks source link

Add implicit parent linkage #3

Open jamesmunns opened 8 years ago

jamesmunns commented 8 years ago

Hey Ludwig,

I think I have this at the point where it is a bit more than just a basic proof of concept. I still dont have cross-file linkage yet, but you can kind of see where I am going with storing the references in the metadata. The code is still ugly, but passably functional for now

Check this out and run it, it should generate the following metadata file for the marketing-requirements.md file:

1dff660090314f14d307af76848765778a981b9f:
  isrequirement: true
  parsedtext: '# User Interaction'
  project: xtag-demo
  references: []
554cb9420c75cfc1089f7835f0fe08e66ffc8927:
  isrequirement: true
  parsedtext: '# Compatibility Requirements'
  project: xtag-demo
  references: []
6d8eb78f784a3f7729578bb46e8b4c87f0f9d3c3:
  isrequirement: true
  parsedtext: '* World!'
  project: xtag-demo
  references:
  - c2250ee42443668293d876516cd6f3279f47407a
73f821b0768254065ee29e392331515487877b84:
  isrequirement: true
  parsedtext: 'The product will greet the user as such:'
  project: xtag-demo
  references:
  - c2250ee42443668293d876516cd6f3279f47407a
97d9b9708d35983483f1a705156a352079519f6d:
  isrequirement: true
  parsedtext: '* Hello!'
  project: xtag-demo
  references:
  - c2250ee42443668293d876516cd6f3279f47407a
ba1b9e699c90f430567751f7cbc5ec0cde1c5d14:
  isrequirement: true
  parsedtext: The product will support English and German Languages
  project: xtag-demo
  references:
  - 1dff660090314f14d307af76848765778a981b9f
c2250ee42443668293d876516cd6f3279f47407a:
  isrequirement: true
  parsedtext: '# Functional Requirements'
  project: xtag-demo
  references: []
c3e68b98702e2ef3391aa310f373fbf767821028:
  isrequirement: true
  parsedtext: The product will count to a user-defined number sequentially
  project: xtag-demo
  references:
  - 1dff660090314f14d307af76848765778a981b9f
ed5ed0dd155a4f68b9dcd32ef3e4e53ea45f0ea5:
  isrequirement: true
  parsedtext: The product will be written in [Python3](http://foo.html)
  project: xtag-demo
  references:
  - 554cb9420c75cfc1089f7835f0fe08e66ffc8927
f894e609fb0c9be6cca4bf02f602200446d6603e:
  isrequirement: true
  parsedtext: '* (No Comma)'
  project: xtag-demo
  references:
  - c2250ee42443668293d876516cd6f3279f47407a
jamesmunns commented 8 years ago

Please read and comment on this RFC/Pull request: https://github.com/jamesmunns/git_crosstag/issues/4 before approving or merging this pull request.