Added statusline settings. Fixed indentation
I want to use a custom statusline for both Gundo splits so i added two
variables for it setting it. If the variables are empty Gundo works like
normal but if there is something in them the text get used. Example:
  let g:gundo_preview_statusline = "Gundo Preview"
  let g:gundo_tree_statusline = "Gundo Tree"
The indentation was off in a few places so i fixed it. The real tabs was
removed and replaced with spaces like the rest of the source file.
    
        | author | Göran Gustafsson <gustafsson.g@gmail.com> | 
    
        | date | Sun, 05 Feb 2012 09:33:52 +0100 | 
    
    
        | parents | 2a78f151df54 | 
    
        | children | bf31800e9784 | 
    
        | branches/tags | (none) | 
    
        | files | autoload/gundo.vim | 
Changes
    
--- a/autoload/gundo.vim	Sat Dec 31 17:37:13 2011 -0500
+++ b/autoload/gundo.vim	Sun Feb 05 09:33:52 2012 +0100
@@ -216,6 +216,9 @@
             call s:GundoResizeBuffers(winnr())
         endif
     endif
+    if exists("g:gundo_tree_statusline")
+        let &l:statusline = g:gundo_tree_statusline
+    endif
 endfunction"}}}
 
 function! s:GundoOpenPreview()"{{{
@@ -250,6 +253,9 @@
             endif
         endif
     endif
+    if exists("g:gundo_preview_statusline")
+        let &l:statusline = g:gundo_preview_statusline
+    endif
 endfunction"}}}
 
 function! s:GundoClose()"{{{
@@ -266,13 +272,13 @@
 
 function! s:GundoOpen()"{{{
     if !exists('g:gundo_py_loaded')
-	if s:has_supported_python == 2 && g:gundo_prefer_python3
-	  exe 'py3file ' . s:plugin_path . '/gundo.py'
-	  python3 initPythonModule()
-	else
-	  exe 'pyfile ' . s:plugin_path . '/gundo.py'
-	  python initPythonModule()
-	endif
+        if s:has_supported_python == 2 && g:gundo_prefer_python3
+            exe 'py3file ' . s:plugin_path . '/gundo.py'
+            python3 initPythonModule()
+        else
+            exe 'pyfile ' . s:plugin_path . '/gundo.py'
+            python initPythonModule()
+        endif
 
         if !s:has_supported_python
             function! s:GundoDidNotLoad()
@@ -312,11 +318,11 @@
 endfunction"}}}
 
 function! s:GundoShow()"{{{
-	call s:GundoOpen()
+    call s:GundoOpen()
 endfunction"}}}
 
 function! s:GundoHide()"{{{
-	call s:GundoClose()
+    call s:GundoClose()
 endfunction"}}}
 
 "}}}
@@ -380,25 +386,25 @@
 
 function! s:GundoRenderGraph()"{{{
     if s:has_supported_python == 2 && g:gundo_prefer_python3
-	python3 GundoRenderGraph()
+        python3 GundoRenderGraph()
     else
-	python GundoRenderGraph()
+        python GundoRenderGraph()
     endif
 endfunction"}}}
 
 function! s:GundoRenderPreview()"{{{
     if s:has_supported_python == 2 && g:gundo_prefer_python3
-	python3 GundoRenderPreview()
+        python3 GundoRenderPreview()
     else
-	python GundoRenderPreview()
+        python GundoRenderPreview()
     endif
 endfunction"}}}
 
 function! s:GundoRenderChangePreview()"{{{
     if s:has_supported_python == 2 && g:gundo_prefer_python3
-	python3 GundoRenderChangePreview()
+        python3 GundoRenderChangePreview()
     else
-	python GundoRenderChangePreview()
+        python GundoRenderChangePreview()
     endif
 endfunction"}}}
 
@@ -408,17 +414,17 @@
 
 function! s:GundoRevert()"{{{
     if s:has_supported_python == 2 && g:gundo_prefer_python3
-	python3 GundoRevert()
+        python3 GundoRevert()
     else
-	python GundoRevert()
+        python GundoRevert()
     endif
 endfunction"}}}
 
 function! s:GundoPlayTo()"{{{
     if s:has_supported_python == 2 && g:gundo_prefer_python3
-	python3 GundoPlayTo()
+        python3 GundoPlayTo()
     else
-	python GundoPlayTo()
+        python GundoPlayTo()
     endif
 endfunction"}}}