コード例 #1
0
ファイル: SystemReader.cs プロジェクト: TetradogOther/NGit
            public override FileBasedConfig OpenSystemConfig(Config parent, FS fs)
            {
                FilePath prefix = fs.GitPrefix();

                if (prefix == null)
                {
                    return(new _FileBasedConfig_85(null, fs));
                }
                // empty, do not load
                // regular class would bomb here
                FilePath etc    = fs.Resolve(prefix, "etc");
                FilePath config = fs.Resolve(etc, "gitconfig");

                return(new FileBasedConfig(parent, config, fs));
            }
コード例 #2
0
ファイル: FS_Win32_Cygwin.cs プロジェクト: ashmind/ngit
        internal static bool Detect()
        {
            string path = AccessController.DoPrivileged(new _PrivilegedAction_58());

            if (path == null)
            {
                return(false);
            }
            FilePath found = FS.SearchPath(path, "cygpath.exe");

            if (found != null)
            {
                cygpath = found.GetPath();
            }
            return(cygpath != null);
        }
コード例 #3
0
 /// <summary>Initialize this FS using another's current settings.</summary>
 /// <remarks>Initialize this FS using another's current settings.</remarks>
 /// <param name="src">the source FS to copy from.</param>
 protected internal FS(NGit.Util.FS src)
 {
     // Do nothing by default.
     userHome  = src.userHome;
     gitPrefix = src.gitPrefix;
 }
コード例 #4
0
 protected internal FS_POSIX_Java6(FS src) : base(src)
 {
 }
コード例 #5
0
ファイル: FS_Win32.cs プロジェクト: thild/monodevelop
 protected internal FS_Win32(FS src) : base(src)
 {
 }
コード例 #6
0
ファイル: SystemReader.cs プロジェクト: TetradogOther/NGit
 /// <param name="parent">
 /// a config with values not found directly in the returned
 /// config. Null is a reasonable value here.
 /// </param>
 /// <param name="fs">
 /// the file system abstraction which will be necessary to perform
 /// certain file system operations.
 /// </param>
 /// <returns>
 /// the gitonfig configuration found in the system-wide "etc"
 /// directory
 /// </returns>
 public abstract FileBasedConfig OpenSystemConfig(Config parent, FS fs);
コード例 #7
0
ファイル: SystemReader.cs プロジェクト: TetradogOther/NGit
 /// <param name="parent">a config with values not found directly in the returned config
 ///     </param>
 /// <param name="fs">
 /// the file system abstraction which will be necessary to perform
 /// certain file system operations.
 /// </param>
 /// <returns>the git configuration found in the user home</returns>
 public abstract FileBasedConfig OpenUserConfig(Config parent, FS fs);
コード例 #8
0
ファイル: SystemReader.cs プロジェクト: TetradogOther/NGit
            public override FileBasedConfig OpenUserConfig(Config parent, FS fs)
            {
                FilePath home = fs.UserHome();

                return(new FileBasedConfig(parent, new FilePath(home, ".gitconfig"), fs));
            }
コード例 #9
0
ファイル: SystemReader.cs プロジェクト: TetradogOther/NGit
 public _FileBasedConfig_85(FilePath baseArg1, FS baseArg2) : base(baseArg1, baseArg2
                                                                   )
 {
 }
コード例 #10
0
 protected internal FS_POSIX(FS src) : base(src)
 {
 }
コード例 #11
0
ファイル: FS_Win32_Cygwin.cs プロジェクト: shoff/ngit
 protected internal FS_Win32_Cygwin(FS src) : base(src)
 {
 }
コード例 #12
0
ファイル: FS.cs プロジェクト: ashmind/ngit
 static FS()
 {
     DETECTED = Detect(null);
 }