In the past with drupal sites that I've worked on I have used hidden files in my sites/site-name folder so that I can record in the commit history that the folder was created. Perhaps something along a similar like might work with notes.
Maybe something like Create initial version of class file or files "maybe even empty files" then use git add and git commit to store them in the repo and finally git notes to add the description. Since I mainly use git with drupal and just need to record when I create a site specific folder or add / update a module I have a very basic working knowledge of git. Based on how I interpret the below excerpt from the git-notes man page I think the above would work as long as there is not a commit between the initial addition/commit of the class files and the note. This is from the git-notes man page at kernel.org A typical use of notes is to supplement a commit message without changing the commit itself. Notes can be shown by git log along with the original commit message. From: [email protected] [mailto:[email protected]] On Behalf Of Mark Adam Sent: Sunday, August 19, 2012 4:30 PM To: [email protected] Subject: Re: [git-users] git add "This file is for the blah class" On Sun, Aug 19, 2012 at 5:24 PM, NightShade <[email protected]> wrote: Mark, Have you looked into the notes subcommand for git? I have not personally used it myself so I'm not certain if it will work for what you want or not but it does sound like it would at least be a start for the type of functionality your looking for. Well, I'd like to tie the notes to specific files, so that github and the like can use them in displaying code. I don't think a generic notes will do the job.... mark -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
