summaryrefslogtreecommitdiff
path: root/src/win32/findfile.c
Commit message (Collapse)AuthorAgeFilesLines
* git_error: use new names in internal APIs and usageEdward Thomson2019-01-221-1/+1
| | | | | Move to the `git_error` name in the internal API for error-related functions.
* Convert usage of `git_buf_free` to new `git_buf_dispose`Patrick Steinhardt2018-06-101-2/+2
|
* Make sure to always include "common.h" firstPatrick Steinhardt2017-07-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | Next to including several files, our "common.h" header also declares various macros which are then used throughout the project. As such, we have to make sure to always include this file first in all implementation files. Otherwise, we might encounter problems or even silent behavioural differences due to macros or defines not being defined as they should be. So in fact, our header and implementation files should make sure to always include "common.h" first. This commit does so by establishing a common include pattern. Header files inside of "src" will now always include "common.h" as its first other file, separated by a newline from all the other includes to make it stand out as special. There are two cases for the implementation files. If they do have a matching header file, they will always include this one first, leading to "common.h" being transitively included as first file. If they do not have a matching header file, they instead include "common.h" as first file themselves. This fixes the outlined problems and will become our standard practice for header and source files inside of the "src/" from now on.
* giterr_set: consistent error messagesEdward Thomson2016-12-291-1/+1
| | | | | | | | Error messages should be sentence fragments, and therefore: 1. Should not begin with a capital letter, 2. Should not conclude with punctuation, and 3. Should not end a sentence and begin a new one
* config: add a ProgramData levelcmn/programdata-configCarlos Martín Nieto2015-10-211-0/+10
| | | | | This is where portable git stores the global configuration which we can use to adhere to it even though git isn't quite installed on the system.
* win32: use NT-prefixed "\\?\" pathsEdward Thomson2014-12-161-0/+1
| | | | | | | | | | | | When turning UTF-8 paths into UCS-2 paths for Windows, always use the \\?\-prefixed paths. Because this bypasses the system's path canonicalization, handle the canonicalization functions ourselves. We must: 1. always use a backslash as a directory separator 2. only use a single backslash between directories 3. not rely on the system to translate "." and ".." in paths 4. remove trailing backslashes, except at the drive root (C:\)
* React to feedback for UTF-8 <-> WCHAR and reparse workPhilip Kelley2014-04-231-1/+1
|
* Win32: UTF-8 <-> WCHAR conversion overhaulPhilip Kelley2014-04-191-56/+37
|
* Refactor git_win32__find_system_dirs() to extract "etc\\" as subpath parameterLinquize2013-09-171-10/+10
|
* Fix failure in win32_find_git_in_registry() when UAC is turned onLinquize2013-09-171-1/+1
| | | | | Demand read only access to registry key instead of full access. This might happen in Windows Vista and later.
* Fix failure in win32_find_git_in_registry()Linquize2013-09-171-1/+1
| | | | The buffer size 0 was definitely not enough so it failed
* windows: Path conversion with better semanticsVicent Marti2013-08-131-6/+6
|
* Discriminate path-specific and general UTF-X conversionsBen Straub2013-08-081-2/+2
|
* Add typedefs for win32 utf-8 and utf-16 buffersBen Straub2013-08-071-1/+1
| | | | ...and normalize the signatures of the two conversion functions.
* Fix compilation warningsnulltoken2013-06-291-5/+3
|
* Fix trailing whitespacesnulltoken2013-05-151-1/+0
|
* Fixes and cleanupsRussell Belfer2013-03-181-10/+10
| | | | | Get rid of some dead code, tighten things up a bit, and fix a bug with core::env test.
* Switch search paths to classic delimited stringsRussell Belfer2013-03-181-42/+26
| | | | | | | | | | | | This switches the APIs for setting and getting the global/system search paths from using git_strarray to using a simple string with GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment PATH variable would contain. This makes it simpler to get and set the value. I also added code to expand "$PATH" when setting a new value to embed the old value of the path. This means that I no longer require separate actions to PREPEND to the value.
* Implement global/system file search pathsRussell Belfer2013-03-151-55/+153
| | | | | | | | | | | | | | | | | | | | | | | The goal of this work is to expose the search logic for "global", "system", and "xdg" files through the git_libgit2_opts() interface. Behind the scenes, I changed the logic for finding files to have a notion of a git_strarray that represents a search path and to store a separate search path for each of the three tiers of config file. For each tier, I implemented a function to initialize it to default values (generally based on environment variables), and then general interfaces to get it, set it, reset it, and prepend new directories to it. Next, I exposed these interfaces through the git_libgit2_opts interface, reusing the GIT_CONFIG_LEVEL_SYSTEM, etc., constants for the user to control which search path they were modifying. There are alternative designs for the opts interface / argument ordering, so I'm putting this phase out for discussion. Additionally, I ended up doing a little bit of clean up regarding attr.h and attr_file.h, adding a new attrcache.h so the other two files wouldn't have to be included in so many places.
* Stick to coding style: Move up bracesSven Strickroth2013-02-011-6/+3
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Detect msysgit installation of users without admin rightsSven Strickroth2013-01-311-4/+7
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Refactored: Move msysgit registry detection to it's own functionSven Strickroth2013-01-311-17/+24
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Move win32 specific stuff to win32/findfile.cSven Strickroth2012-10-021-0/+149
Signed-off-by: Sven Strickroth <email@cs-ware.de>