{"thread":{"id":"18324","subject":"adding files in .git?","startedAt":"2009-03-16T15:14:58Z","lastAt":"2009-03-16T16:56:32Z","messageCount":3,"participants":["E R","Shawn O. Pearce","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"108089","messageId":"3a69fa7c0903160814u42fbb461qf03a37176546357d@mail.gmail.com","threadId":"18324","inReplyTo":null,"subject":"adding files in .git?","fromName":"E R","fromEmail":"pc88mxer@gmail.com","sentAt":"2009-03-16T15:14:58Z","receivedAt":"2009-03-16T15:14:58Z","isPatch":false,"sender":{"key":"pc88mxer@gmail.com","avatar":null},"body":"I'd like to add a \"short description\" attribute to my .git repository.\nThis would be used by my bash prompt setting function in creating the\nPS1 string. How would you recommend that this be implemented?\n\nMy ideas are:\n\n1) Use another file in .git similar to the \"description\" file (such as\n.git/short-description)\n2) Use a setting in the .git/config file.\n\nAny comments on the advantages/disadvantages of these approaches? Or\nis there yet another better way?\n\nThanks,\n\nER\n"},{"id":"108090","messageId":"20090316151823.GP22920@spearce.org","threadId":"18324","inReplyTo":"3a69fa7c0903160814u42fbb461qf03a37176546357d@mail.gmail.com","subject":"Re: adding files in .git?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-03-16T15:18:23Z","receivedAt":"2009-03-16T15:18:23Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"E R <pc88mxer@gmail.com> wrote:\n> I'd like to add a \"short description\" attribute to my .git repository.\n> This would be used by my bash prompt setting function in creating the\n> PS1 string. How would you recommend that this be implemented?\n> \n> My ideas are:\n> \n> 1) Use another file in .git similar to the \"description\" file (such as\n> .git/short-description)\n> 2) Use a setting in the .git/config file.\n> \n> Any comments on the advantages/disadvantages of these approaches? Or\n> is there yet another better way?\n\nUsing another file may be faster to execute as you can probably\nread the file directly in shell, vs. needing to fork to read the\nfile with `git config`.\n\nBut there really isn't a huge argument either way other than that.\n\n-- \nShawn.\n"},{"id":"108100","messageId":"vpqr60x76f3.fsf@bauges.imag.fr","threadId":"18324","inReplyTo":"3a69fa7c0903160814u42fbb461qf03a37176546357d@mail.gmail.com","subject":"Re: adding files in .git?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-03-16T16:56:32Z","receivedAt":"2009-03-16T16:56:32Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"E R <pc88mxer@gmail.com> writes:\n\n> 1) Use another file in .git similar to the \"description\" file (such as\n> .git/short-description)\n> 2) Use a setting in the .git/config file.\n>\n> Any comments on the advantages/disadvantages of these approaches?\n\nNeither of them will propagate through clone. Depending on your\nuse-case, this is an advantage or not.\n\n-- \nMatthieu\n"}]}