~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Api/StatusCommand.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
42
*/
43
43
 
 
44
using System.IO;
44
45
using NGit;
45
46
using NGit.Api;
 
47
using NGit.Api.Errors;
46
48
using NGit.Treewalk;
47
49
using Sharpen;
48
50
 
86
88
                /// object telling about each path where working
87
89
                /// tree, index or HEAD differ from each other.
88
90
                /// </returns>
89
 
                /// <exception cref="System.IO.IOException"></exception>
 
91
                /// <exception cref="NGit.Api.Errors.GitAPIException"></exception>
90
92
                /// <exception cref="NGit.Errors.NoWorkTreeException"></exception>
91
93
                public override Status Call()
92
94
                {
94
96
                        {
95
97
                                workingTreeIt = new FileTreeIterator(repo);
96
98
                        }
97
 
                        IndexDiff diff = new IndexDiff(repo, Constants.HEAD, workingTreeIt);
98
 
                        diff.Diff();
99
 
                        return new Status(diff);
 
99
                        try
 
100
                        {
 
101
                                IndexDiff diff = new IndexDiff(repo, Constants.HEAD, workingTreeIt);
 
102
                                diff.Diff();
 
103
                                return new Status(diff);
 
104
                        }
 
105
                        catch (IOException e)
 
106
                        {
 
107
                                throw new JGitInternalException(e.Message, e);
 
108
                        }
100
109
                }
101
110
 
102
111
                /// <summary>