Goto "Unstaged changed" when creating status buffer.

* magit.el (magit-update-status): Goto first unstaged change when
point is still at beginning of buffer.
This commit is contained in:
Marius Vollmer 2008-08-30 20:37:44 +03:00
parent 4916b98e4a
commit 1161d292f6

View file

@ -714,7 +714,9 @@ Please see the manual for a complete description of Magit.
"git" "log" "--graph" "--pretty=oneline"
(format "%s/%s..HEAD" remote branch))))
(magit-goto-line old-line)
(magit-goto-section old-section))
(magit-goto-section old-section)
(when (bobp)
(magit-goto-section '(unstaged 1 1))))
(magit-refresh-marks-in-buffer buf)
(magit-highlight-item)))