-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup commit-message #9
Comments
@wking can you check if this are the commit that need a cleanup at the commit-message? I can do the cleanup after get a green light. |
On Fri, Oct 31, 2014 at 06:23:16PM -0700, Raniere Silva wrote: Just so we can find them again after rebasing, I'll copy down some of
Also long and worth adjusting (e.g. it's missing the blank line
Don't worry about a PR for this. Just let me know when you've got I'd usually handle this sort of thing with ‘rebase -i’, but that $ git checkout -b wip $LONG_COMMIT You'd want to start with the newest long commit and work your way back |
On Sat, Nov 01, 2014 at 05:23:46AM -0700, Raniere Silva wrote:
Hmm, looks like you dropped the commit after the long message: $ git diff master..r-gaia-cs/cleanup I guess it should have been: $ git rebase -p --onto wip $LONG_COMMIT You could patch those commits back into your cleaned-up history, but $ git reset --hard origin/master and start over (grepping through ‘git log -p r-gaia-cs/cleanup’ to |
@wking Can you check again? Hope this time is OK. |
On Sun, Nov 02, 2014 at 01:00:52PM -0800, Raniere Silva wrote:
Hmm. This time the output matches :), but it looks like we're $ diff -u <(git log --graph --topo-order --pretty=format:%s origin/master) <(git log --graph --topo-order --pretty=format:%s r-gaia-cs/cleanup)
The “Removing explicit 'level' keys from Markdown files” commit seems blocks…”. It also looks like |
It isn't.
Sorry for the trouble. |
On Mon, Nov 03, 2014 at 09:03:11AM -0800, Raniere Silva wrote:
No trouble, it's good to know what commits needed fixing, and to know $ git checkout -b commit-message-cleanup origin/master Look around the the newest commit @r-gaia-cs found for some context: $ git log --graph --topo-order --oneline --decorate | grep -2 'using level-3 headings in all Markdown'
Fix that commit: $ git checkout -b wip 39df817 Check our work: $ git log --graph --topo-order --oneline --decorate | grep -2 'using level-3 headings in all Markdown'
So we have the same graph, with a better commit summary :). Kill $ git branch -D wip Moving on to the next oldest commit, we'll get some context: $ git log --graph --topo-order --oneline --decorate | grep -4 'In the novice shell lesson 03-pipefilter'
Fix that commit: $ git checkout -b wip 69fe2c3 Check our work: $ git log --graph --topo-order --oneline --decorate | grep -4 'In the novice shell lesson 03-pipefilter'
So we have the same graph, with a better commit summary :). Kill $ git branch -D wip Moving on to the next oldest commit, we'll get some context: $ git log --graph --topo-order --oneline --decorate | grep -4 'Getting rid of old cheat sheets'
The summary for 75ebce5 suspiciously contains “Removing explicit $ git show 75ebce5 | grep '^[-+]' Maybe we don't need this commit at all. Comparing 114fa8d with $ git cat-file -p 114fa8d | grep tree Lets just drop the long gutted commit (75ebce5) and the useless $ git rebase -p --onto 114fa8d 60d1cf5 Check our work: $ git log --graph --topo-order --oneline --decorate | grep -2 'keys from Markdown files'
So we've completely dropped the branch that 75ebce5 was on, along $ git log --graph --topo-order --oneline --decorate | grep -2 'Corrects runtime calculation for goostat and goodiff'
Fix that commit: $ git checkout -b wip 79b05ed Check our work: $ git log --graph --topo-order --oneline --decorate | grep -2 'Corrects runtime calculation for goostat and goodiff'
So we have the same graph, with a better commit summary :). Kill $ git branch -D wip Compare with our original tree: $ git cat-file -p origin/master | grep tree so we haven't lost any content. What about our graph? $ diff -u <(git log --graph --topo-order --pretty=format:%s origin/master) <(git log --graph --topo-order --pretty=format:%s HEAD)
Looks great :) (I've truncated the long commit messages by hand $ git checkout master Push to the public repo, clobbering the old master: $ git push -f origin master |
Ah, I missed swcarpentry/DEPRECATED-bc@b94793c (1. Making filenames in $ git log --graph --topo-order --oneline --decorate | grep -2 'Making filenames in'
Fix the commit: $ git checkout -b wip 7a90443 Lets show the viscinity before the rebase this time, just so $ git log --graph --topo-order --oneline --decorate wip 52fcfd4 | head -n 6
So the rebase is taking everything in master that's after 7a90443 $ git rebase -p --onto wip 7a90443 Check the results: $ git log --graph --topo-order --oneline --decorate | grep -2 'adjust filesnnames'
Looks good. Kill the wip branch: $ git branch -D wip And publish (clobbering the old master): $ git push -f origin master
|
In the previous two comments I explained how I cleaned up the commit
Could you each just check the changed commit messages (the commit |
On Wed, Nov 05, 2014 at 09:46:49PM -0800, W. Trevor King wrote:
Heh, although the GitHub UI doesn't actually show the difference here $ git log -1 --oneline a6fd62d
|
We're now live with additional post-bc history, so the window for feedback from @mestato and @BernhardKonrad has closed. |
Sorry, I didn't realize someone was waiting for my input. It all looks good! |
added learning outline as a basis for discussion
translate 'finish' to 'final
[RDY] pandoc filter to convert blockquotes to divs
The text was updated successfully, but these errors were encountered: