File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 4343
4444(defun dashboard-insert-project-status-heading ()
4545 " Insert a heading with project path and whether or not it is behind."
46+ (dashboard-insert-heading " Project " )
47+ (if (functionp 'magit-status )
48+ (widget-create 'push-button
49+ :action `(lambda (&rest ignore) (magit-status , git-repo ))
50+ :mouse-face 'highlight
51+ :follow-link " \C -m"
52+ :button-prefix " "
53+ :button-suffix " "
54+ :format " %[%t%]"
55+ (abbreviate-file-name git-repo))
56+ (dashboard-insert-heading git-repo))
4657 (dashboard-insert-heading
47- (concat " Project "
48- git-repo
49- (if (git-local-is-behind?)
50- " is behind the remote. (use \" git-pull\" to update)"
51- " is up-to-date." )
52- hard-newline)))
58+ (concat
59+ (if (git-local-is-behind?)
60+ " is behind the remote. (use \" git-pull\" to update)"
61+ " is up-to-date." )
62+ hard-newline)))
5363
5464(defun dashboard-insert-project-status-body ()
5565 " Insert lists of untracked, unstaged, and staged files."
You can’t perform that action at this time.
0 commit comments