{"thread":{"id":"2496","subject":"Simple questions on GIT usage.","startedAt":"2005-11-14T15:46:23Z","lastAt":"2005-11-14T16:56:10Z","messageCount":5,"participants":["Franck","Andreas Ericsson","Randal L. Schwartz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11795","messageId":"cda58cb80511140746w2f691fb8y@mail.gmail.com","threadId":"2496","inReplyTo":null,"subject":"Simple questions on GIT usage.","fromName":"Franck","fromEmail":"vagabon.xyz@gmail.com","sentAt":"2005-11-14T15:46:23Z","receivedAt":"2005-11-14T15:46:23Z","isPatch":false,"sender":{"key":"vagabon.xyz@gmail.com","avatar":null},"body":"Hi,\n\nI'd like to know how to delete an entire branch and all it's related\nobjects. Is the following correct to accomplish that ?\n\n        # rm -f .git/refs/heads/mybranch\n        # git-prune\n\nAnd a second question is: how to get the tree ID of the working\nrepository ? I know it's very basic but I can't find out the answer in\nany documentations.\n\nThanks\n--\n               Franck\n"},{"id":"11797","messageId":"4378B687.3060701@op5.se","threadId":"2496","inReplyTo":"cda58cb80511140746w2f691fb8y@mail.gmail.com","subject":"Re: Simple questions on GIT usage.","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-14T16:08:39Z","receivedAt":"2005-11-14T16:08:39Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Franck wrote:\n> Hi,\n> \n> I'd like to know how to delete an entire branch and all it's related\n> objects. Is the following correct to accomplish that ?\n> \n\nman git-branch\n\nIt will tell you about its -d and -D options.\n\n> \n> And a second question is: how to get the tree ID of the working\n> repository ?\n\n\nI get a feeling there's a higher-level question behind this one, like \n\"How can I get a diff between an updated (but not committed) index and \nthe files in the working directory?\"\n\nWhen you have a problem it's usually better to just tell people what \nsort of end-result you're hoping to achieve and what steps you've taken \nto accomplish it so far. Asking for details about something that might \nbe wrong thinking from the start won't help you but will still require \nmuch of our time to answer. I.e. nobody gains anything but the work \nstill has to be done.\n\nIncidentally, the answer to the quoted question above is (usually)\n\tgit diff-index -p HEAD\n\nOtherwise;\nman git (and look in the \"IDENTIFIER TERMINOLOGY\". I wish I had).\n\nand\n\nfor i in /usr/bin/git-*tree*; do man ${i##*/}; done\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"11802","messageId":"cda58cb80511140836i41d496e1u@mail.gmail.com","threadId":"2496","inReplyTo":"cda58cb80511140746w2f691fb8y@mail.gmail.com","subject":"Re: Simple questions on GIT usage.","fromName":"Franck","fromEmail":"vagabon.xyz@gmail.com","sentAt":"2005-11-14T16:36:08Z","receivedAt":"2005-11-14T16:36:08Z","isPatch":false,"sender":{"key":"vagabon.xyz@gmail.com","avatar":null},"body":"Andreas\n\nCould you cc me when you're responding to my questions since I'm not\nsubscribed to the GIT mailing list for now...thanks\n\ngit-branch -d option is not documented on online documentation at:\nhttp://www.kernel.org/pub/software/scm/git/docs/\nThat's why I didn't find it by my self...\n\nRegarding the second question, your feeling is wrong.  What you\ndescribed is well documented in the git tutorial. There's no \"hidden\"\nquestion behind the one I posted in my first email. So the question is\nstill: Is there a way to get information about the working repository\n? For instance if I create a branch which is not based on the current\nHEAD position of master branch but instead is based on a previous\npoisition of master branch.  Then later I want to know how I create\nthis branch, how can I get this information ?\n\nThanks\n--\n               Franck\n"},{"id":"11801","messageId":"86iruvxk1i.fsf@blue.stonehenge.com","threadId":"2496","inReplyTo":"4378B687.3060701@op5.se","subject":"Re: Simple questions on GIT usage.","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-11-14T16:37:29Z","receivedAt":"2005-11-14T16:37:29Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Andreas\" == Andreas Ericsson <ae@op5.se> writes:\n\nAndreas> man git-branch\n\nAndreas> It will tell you about its -d and -D options.\n\nIt will?  My manpage has no -d or -D option for git-branch.\n\nAnd I've been looking for something like that too.  If I want to\nabandon a what-if branch, how do I make sure that the branch and all\nobjects are deleted?\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"11818","messageId":"4378C1AA.9090209@op5.se","threadId":"2496","inReplyTo":"86iruvxk1i.fsf@blue.stonehenge.com","subject":"Re: Simple questions on GIT usage.","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-14T16:56:10Z","receivedAt":"2005-11-14T16:56:10Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Randal L. Schwartz wrote:\n>>>>>>\"Andreas\" == Andreas Ericsson <ae@op5.se> writes:\n> \n> \n> Andreas> man git-branch\n> \n> Andreas> It will tell you about its -d and -D options.\n> \n> It will?  My manpage has no -d or -D option for git-branch.\n> \n\nAh. It's the help output that has them. I've submitted a patch to add \nthem to the man-page though, so it should show up soonish.\n\n> And I've been looking for something like that too.  If I want to\n> abandon a what-if branch, how do I make sure that the branch and all\n> objects are deleted?\n> \n\ngit branch -D branchname\ngit prune\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}