<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ECMWinResolveSymlinks — Extra CMake Modules 5.57.0 documentation</title> <link rel="stylesheet" href="../_static/ecm.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/language_data.js"></script> <link rel="shortcut icon" href="../_static/kde-favicon.ico"/> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="ecm-toolchains(7)" href="../manual/ecm-toolchains.7.html" /> <link rel="prev" title="ECMUseFindModules" href="ECMUseFindModules.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../manual/ecm-toolchains.7.html" title="ecm-toolchains(7)" accesskey="N">next</a> |</li> <li class="right" > <a href="ECMUseFindModules.html" title="ECMUseFindModules" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">ECM 5.57 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../manual/ecm-modules.7.html" accesskey="U">ecm-modules(7)</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="ecmwinresolvesymlinks"> <span id="module:ECMWinResolveSymlinks"></span><h1>ECMWinResolveSymlinks<a class="headerlink" href="#ecmwinresolvesymlinks" title="Permalink to this headline">¶</a></h1> <p>Resolve pseudo-symlinks created by git when cloning on Windows.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">ecm_win_resolve_symlinks</span><span class="p">(</span><span class="o"><</span><span class="nb">dir</span><span class="o">></span><span class="p">)</span> </pre></div> </div> <p>When git checks out a repository with UNIX symlinks on Windows machine, it creates a text file for each symlink, containing a relative path to the real file. This function would recursively walk over specified directory and replace pseudo-symlinks with corresponding real file’s contents. It would then run git update-index –assume-unchanged on them to trick git.</p> <p>This is useful for projects like “breeze-icons” that contain many identical icons implemented as symlinks.</p> <p>Since 5.28</p> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="ECMUseFindModules.html" title="previous chapter">ECMUseFindModules</a></p> <h4>Next topic</h4> <p class="topless"><a href="../manual/ecm-toolchains.7.html" title="next chapter">ecm-toolchains(7)</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/module/ECMWinResolveSymlinks.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../manual/ecm-toolchains.7.html" title="ecm-toolchains(7)" >next</a> |</li> <li class="right" > <a href="ECMUseFindModules.html" title="ECMUseFindModules" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">ECM 5.57 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../manual/ecm-modules.7.html" >ecm-modules(7)</a> »</li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright KDE Developers. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.4. </div> </body> </html>