{"thread":{"id":"24792","subject":"stgit: command to remove file from patch","startedAt":"2010-08-19T16:29:18Z","lastAt":"2010-08-20T00:27:54Z","messageCount":2,"participants":["av78us vaal","Chris Packham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"148469","messageId":"829548.96589.qm@web45501.mail.sp1.yahoo.com","threadId":"24792","inReplyTo":null,"subject":"stgit: command to remove file from patch","fromName":"av78us vaal","fromEmail":"av78us@yahoo.com","sentAt":"2010-08-19T16:29:18Z","receivedAt":"2010-08-19T16:29:18Z","isPatch":false,"sender":{"key":"av78us@yahoo.com","avatar":null},"body":"Hi, \n\nIs there a command to remove a file from a patch in stgit? I mean, something like \"quilt remove\". \n\nI searched a lot but I couldn't find any. \n\nIf such a command is not available, is there an easy way to achieve this by other means. I tried this by changing the git commit and using \"stg repair\". That didn't work for me.\n\nI would like to propose \"stg remove\" to be placed very high on stgit wish-list. \n\nThanks,\nAneesh\n\n\n\n      \n"},{"id":"148493","messageId":"4C6DCC0A.5040006@gmail.com","threadId":"24792","inReplyTo":"829548.96589.qm@web45501.mail.sp1.yahoo.com","subject":"Re: stgit: command to remove file from patch","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2010-08-20T00:27:54Z","receivedAt":"2010-08-20T00:27:54Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"On 19/08/10 09:29, av78us vaal wrote:\n> Hi, \n> \n> Is there a command to remove a file from a patch in stgit? I mean, something like \"quilt remove\". \n> \n> I searched a lot but I couldn't find any. \n> \n> If such a command is not available, is there an easy way to achieve this by other means. I tried this by changing the git commit and using \"stg repair\". That didn't work for me.\n> \n> I would like to propose \"stg remove\" to be placed very high on stgit wish-list. \n> \n> Thanks,\n> Aneesh\n\nWhat do you mean by remove?\n\nIf you want to undo changes that are in the current patch you can do\nsomething like:\n\n  git checkout HEAD~1 filename\n  stg refresh\n\nIf you want to retain the changes but move them to another patch:\n\n   git reset HEAD filename\n   stg refresh -i\n\nI regularly use the first method, the second method I _think_ will work\nbut haven't tried it.\n"}]}