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

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Util/FS_Win32.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:
51
51
{
52
52
        internal class FS_Win32 : FS
53
53
        {
54
 
                internal static bool IsWin32()
55
 
                {
56
 
                        string osDotName = AccessController.DoPrivileged(new _PrivilegedAction_58());
57
 
                        return osDotName != null && StringUtils.ToLowerCase(osDotName).IndexOf("windows")
58
 
                                 != -1;
59
 
                }
60
 
 
61
 
                private sealed class _PrivilegedAction_58 : PrivilegedAction<string>
62
 
                {
63
 
                        public _PrivilegedAction_58()
64
 
                        {
65
 
                        }
66
 
 
67
 
                        public string Run()
68
 
                        {
69
 
                                return Runtime.GetProperty("os.name");
70
 
                        }
71
 
                }
72
 
 
73
54
                public FS_Win32() : base()
74
55
                {
75
56
                }
98
79
                        return false;
99
80
                }
100
81
 
 
82
                public override bool IsCaseSensitive()
 
83
                {
 
84
                        return false;
 
85
                }
 
86
 
101
87
                public override bool RetryFailedLockFileCommit()
102
88
                {
103
89
                        return true;