{"push_id":1748451039,"size":3,"distinct_size":3,"ref":"refs/heads/status","head":"c90190a398c0188169dcfe9026801f9a7cdb45d3","before":"3c76385f7ddec7178688433222d377d6d3017211","commits":[{"sha":"57e101c6cfab0cdf6ef30b03a770b38fcfea935e","author":{"name":"Prathamesh Chavan","email":"a910fe89e54c7a6a84da414a8f5a3eda0c9cb083@gmail.com"},"message":"submodule: port set_name_rev from shell to C\n\nSince later on we want to port submodule subcommand status, and since\nset_name_rev is part of cmd_status, hence this function is ported. Its\nhas been ported to function set_name_rev in C, which calls get_name_rev\nto get the revname, and after formatting it, set_name_prints it. And\nhence in this way, the command\n`git submodule--helper set-name-rev \"sm_path\" \"sha1\"`\nsets value of revname in git-submodule.sh\n\nThe function get_name_rev return the stdout of the git describe commands,\nwhich are called using a child_process.\n\nMentored-by: Christian Couder <christian.couder@gmail.com>\nMentored-by: Stefan Beller <sbeller@google.com>\nSigned-off-by: Prathamesh Chavan <pc44800@gmail.com>","distinct":true,"url":"https://api.github.com/repos/pratham-pc/git/commits/57e101c6cfab0cdf6ef30b03a770b38fcfea935e"},{"sha":"b9f1ea6dc187dc4c9e01cdb139c87a4492852f2e","author":{"name":"Prathamesh Chavan","email":"a910fe89e54c7a6a84da414a8f5a3eda0c9cb083@gmail.com"},"message":"submodule-config: introduce submodule_from_path_or_die\n\nWhen there is no .gitmodules file availabe to initialize a submodule\nfrom, `submodule_from_path` just returns NULL. In such cases, we want\nthe process to die with a message. Since this code is repeatedly used,\ninstead we add a function submodule_from_path_or_die to carry out the same.\n\nMentored-by: Christian Couder <christian.couder@gmail.com>\nMentored-by: Stefan Beller <sbeller@google.com>\nSigned-off-by: Prathamesh Chavan <pc44800@gmail.com>","distinct":true,"url":"https://api.github.com/repos/pratham-pc/git/commits/b9f1ea6dc187dc4c9e01cdb139c87a4492852f2e"},{"sha":"c90190a398c0188169dcfe9026801f9a7cdb45d3","author":{"name":"Prathamesh Chavan","email":"a910fe89e54c7a6a84da414a8f5a3eda0c9cb083@gmail.com"},"message":"submodule: port submodule subcommand status\n\nThis aims to make git-submodule status a builtin. 'status' is ported\nto submodule--helper, and submodule--helper is called from\ngit-submodule.sh.\n\nFor the purpose of porting cmd_status, the code is split up such that\none function obtains all the list of submodules, acting as the\nfront-end of git-submodule status. This function later calls the\nsecond function for_each_submodule_list,it which basically loops\nthrough the list of submodules and calls function fn, which in this\ncase is status_submodule. The third function, status submodule returns\nthe status of submodule and also takes care of the recursive flag.\n\nThe first function module_status parses the options present in argv,\nand then with the help of module_list_compute, generates the list of\nsubmodules present in the current working tree.\n\nThe second function for_each_submodule_list traverses through the list,\nand calls function fn (which in the case of submodule subcommand\nforeach is status_submodule) is called for each entry.\n\nThe third function status_foreach checks for the various conditions,\nand prints the status of the submodule accordingly. Also, this\nfunction takes care of the recursive flag by creating a separate\nchild_process and running it inside the submodule.\n\nSince submodule subcommand status is completely ported to\nC, we no longer require the function set_name_rev. Hence,\nit is also removed int this patch.\n\nMentored-by: Christian Couder <christian.couder@gmail.com>\nMentored-by: Stefan Beller <sbeller@google.com>\nSigned-off-by: Prathamesh Chavan <pc44800@gmail.com>","distinct":true,"url":"https://api.github.com/repos/pratham-pc/git/commits/c90190a398c0188169dcfe9026801f9a7cdb45d3"}]}
{"actor":{"display_login":"pratham-pc"}}